diff --git a/src/hooks/useCommonHooks.ts b/src/hooks/useCommonHooks.ts index ec99fcf..6ca9529 100644 --- a/src/hooks/useCommonHooks.ts +++ b/src/hooks/useCommonHooks.ts @@ -73,7 +73,7 @@ export function useCommonHooks() { key: 'timeFormat', defaultValue: '12h', }); - const [searchValue, setSearchValue] = useState(''); + const [searchValue, setSearchValue] = useState(''); const [providerLabel, setProviderLabel] = useState(defaultProviderLabel); const [providerURL, setProviderURL] = useState(defaultProviderURL); const [providerPrefix, setProviderPrefix] = useState(defaultProviderPrefix); diff --git a/src/pages/homepage/components/Search/Search.tsx b/src/pages/homepage/components/Search/Search.tsx index 4dce335..b66cc20 100644 --- a/src/pages/homepage/components/Search/Search.tsx +++ b/src/pages/homepage/components/Search/Search.tsx @@ -534,6 +534,7 @@ export function Search({ 'aria-label': 'Clear search', c: 'var(--mantine-color-accent-0)', bg: 'transparent', + display: searchValue.length === 0 ? 'none' : 'flex', }} scrollAreaProps={{ viewportRef: ref }} renderOption={(item: any) => ( diff --git a/src/pages/homepage/components/Search/components/RenderItem.tsx b/src/pages/homepage/components/Search/components/RenderItem.tsx index 05ba9df..4d27b2d 100644 --- a/src/pages/homepage/components/Search/components/RenderItem.tsx +++ b/src/pages/homepage/components/Search/components/RenderItem.tsx @@ -18,7 +18,7 @@ export default function RenderItem({ allIcons: any; providers: Provider[]; searchValue: string | number; - setSearchValue: React.Dispatch>; + setSearchValue: React.Dispatch>; personal: PersonalData; handleGuacamoleClientLaunchItem: ({ option }: { option: any }) => void; setHistoryMultiplier: React.Dispatch>; diff --git a/src/pages/settings/components/Bookmarks/DebouncedGroupSettingsItem.tsx b/src/pages/settings/components/Bookmarks/DebouncedGroupSettingsItem.tsx index 2792008..c2fa95f 100644 --- a/src/pages/settings/components/Bookmarks/DebouncedGroupSettingsItem.tsx +++ b/src/pages/settings/components/Bookmarks/DebouncedGroupSettingsItem.tsx @@ -208,33 +208,35 @@ function DebouncedGroupSettingsItem({ - {group?.categoryName && - - ) => { - setUpdate({ - ...group, - enabled: event.target.checked ? 1 : 0, - }); + - - } + > + ) => { + setUpdate({ + ...group, + enabled: event.target.checked ? 1 : 0, + }); + }} + openModal={openModal} + /> + + + )} {(provided: DroppableProvided) => (