More typing and fixes
This commit is contained in:
@@ -3,6 +3,8 @@ import {
|
||||
Box,
|
||||
Button,
|
||||
Card,
|
||||
type ComboboxItem,
|
||||
type ComboboxLikeRenderOptionInput,
|
||||
Divider,
|
||||
Grid,
|
||||
GridCol,
|
||||
@@ -179,13 +181,13 @@ const ApplicationSettings = () => {
|
||||
zIndex: 3000,
|
||||
withinPortal: false,
|
||||
}}
|
||||
onChange={(event: any) => {
|
||||
onChange={(value: string | null) => {
|
||||
setNewApplication({
|
||||
...newApplication,
|
||||
icon: event,
|
||||
icon: value ?? '',
|
||||
});
|
||||
}}
|
||||
renderOption={(item: any) => {
|
||||
renderOption={(item: ComboboxLikeRenderOptionInput<ComboboxItem>) => {
|
||||
const Icon = allIcons[item.option.value];
|
||||
return (
|
||||
<Group>
|
||||
|
||||
@@ -2,6 +2,8 @@ import {
|
||||
ActionIcon,
|
||||
Button,
|
||||
Card,
|
||||
type ComboboxItem,
|
||||
type ComboboxLikeRenderOptionInput,
|
||||
Group,
|
||||
Select,
|
||||
Stack,
|
||||
@@ -194,13 +196,13 @@ function DebouncedApplication({
|
||||
zIndex: 3000,
|
||||
withinPortal: false,
|
||||
}}
|
||||
onChange={(event: any) => {
|
||||
onChange={(value: string | null) => {
|
||||
setUpdate({
|
||||
...app,
|
||||
icon: event,
|
||||
icon: value,
|
||||
});
|
||||
}}
|
||||
renderOption={(item: any) => {
|
||||
renderOption={(item: ComboboxLikeRenderOptionInput<ComboboxItem>) => {
|
||||
const Icon = allIcons[item.option.value];
|
||||
return (
|
||||
<Group>
|
||||
|
||||
Reference in New Issue
Block a user