mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-02 18:59:32 +00:00
Fix settings popover toggle logic
This commit is contained in:
parent
2b06cee7fe
commit
b422d223e8
@ -199,17 +199,15 @@ export default function Settings() {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const saveSettings = () => setOpened(false);
|
const saveSettings = () => setOpened(false);
|
||||||
const toggleSettings = () => setOpened(!opened);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Popover open={opened}>
|
<Popover open={opened} onOpenChange={setOpened}>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
variant={controlButtonVariant}
|
variant={controlButtonVariant}
|
||||||
tooltip={t('graphPanel.sideBar.settings.settings')}
|
tooltip={t('graphPanel.sideBar.settings.settings')}
|
||||||
size="icon"
|
size="icon"
|
||||||
onClick={toggleSettings}
|
|
||||||
>
|
>
|
||||||
<SettingsIcon />
|
<SettingsIcon />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user