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,33 +208,35 @@ 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 && (
|
||||||
style={{
|
<Group
|
||||||
position: 'absolute',
|
|
||||||
width: '100%',
|
|
||||||
right: '6rem',
|
|
||||||
top: '-3.25rem',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Box
|
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
right: '1rem',
|
width: '100%',
|
||||||
top: '.5rem',
|
right: '6rem',
|
||||||
|
top: '-3.25rem',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ManagementPill
|
<Box
|
||||||
enabled={group?.enabled}
|
style={{
|
||||||
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
|
position: 'absolute',
|
||||||
setUpdate({
|
right: '1rem',
|
||||||
...group,
|
top: '.5rem',
|
||||||
enabled: event.target.checked ? 1 : 0,
|
|
||||||
});
|
|
||||||
}}
|
}}
|
||||||
openModal={openModal}
|
>
|
||||||
/>
|
<ManagementPill
|
||||||
</Box>
|
enabled={group?.enabled}
|
||||||
</Group>}
|
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
|
setUpdate({
|
||||||
|
...group,
|
||||||
|
enabled: event.target.checked ? 1 : 0,
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
openModal={openModal}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</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