This commit is contained in:
@@ -73,7 +73,7 @@ export function useCommonHooks() {
|
|||||||
key: 'timeFormat',
|
key: 'timeFormat',
|
||||||
defaultValue: '12h',
|
defaultValue: '12h',
|
||||||
});
|
});
|
||||||
const [searchValue, setSearchValue] = useState<string | number>('');
|
const [searchValue, setSearchValue] = useState<string>('');
|
||||||
const [providerLabel, setProviderLabel] = useState(defaultProviderLabel);
|
const [providerLabel, setProviderLabel] = useState(defaultProviderLabel);
|
||||||
const [providerURL, setProviderURL] = useState(defaultProviderURL);
|
const [providerURL, setProviderURL] = useState(defaultProviderURL);
|
||||||
const [providerPrefix, setProviderPrefix] = useState(defaultProviderPrefix);
|
const [providerPrefix, setProviderPrefix] = useState(defaultProviderPrefix);
|
||||||
|
|||||||
@@ -534,6 +534,7 @@ export function Search({
|
|||||||
'aria-label': 'Clear search',
|
'aria-label': 'Clear search',
|
||||||
c: 'var(--mantine-color-accent-0)',
|
c: 'var(--mantine-color-accent-0)',
|
||||||
bg: 'transparent',
|
bg: 'transparent',
|
||||||
|
display: searchValue.length === 0 ? 'none' : 'flex',
|
||||||
}}
|
}}
|
||||||
scrollAreaProps={{ viewportRef: ref }}
|
scrollAreaProps={{ viewportRef: ref }}
|
||||||
renderOption={(item: any) => (
|
renderOption={(item: any) => (
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export default function RenderItem({
|
|||||||
allIcons: any;
|
allIcons: any;
|
||||||
providers: Provider[];
|
providers: Provider[];
|
||||||
searchValue: string | number;
|
searchValue: string | number;
|
||||||
setSearchValue: React.Dispatch<React.SetStateAction<string | number>>;
|
setSearchValue: React.Dispatch<React.SetStateAction<string>>;
|
||||||
personal: PersonalData;
|
personal: PersonalData;
|
||||||
handleGuacamoleClientLaunchItem: ({ option }: { option: any }) => void;
|
handleGuacamoleClientLaunchItem: ({ option }: { option: any }) => void;
|
||||||
setHistoryMultiplier: React.Dispatch<React.SetStateAction<number>>;
|
setHistoryMultiplier: React.Dispatch<React.SetStateAction<number>>;
|
||||||
|
|||||||
@@ -208,7 +208,8 @@ function DebouncedGroupSettingsItem({
|
|||||||
</Card.Section>
|
</Card.Section>
|
||||||
<Card.Section mt={'1rem'} p={'1rem'}>
|
<Card.Section mt={'1rem'} p={'1rem'}>
|
||||||
<Stack pos={'relative'}>
|
<Stack pos={'relative'}>
|
||||||
{group?.categoryName &&<Group
|
{group?.categoryName && (
|
||||||
|
<Group
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -234,7 +235,8 @@ function DebouncedGroupSettingsItem({
|
|||||||
openModal={openModal}
|
openModal={openModal}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</Group>}
|
</Group>
|
||||||
|
)}
|
||||||
<DragDropContext onDragEnd={onDragEnd}>
|
<DragDropContext onDragEnd={onDragEnd}>
|
||||||
<Droppable droppableId={`${bookmarkGroup?.id}`}>
|
<Droppable droppableId={`${bookmarkGroup?.id}`}>
|
||||||
{(provided: DroppableProvided) => (
|
{(provided: DroppableProvided) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user