yangdx
commited on
Commit
·
0766f80
1
Parent(s):
8278e30
Fix linting
Browse files
lightrag_webui/src/components/graph/Settings.tsx
CHANGED
@@ -125,7 +125,7 @@ export default function Settings() {
|
|
125 |
const graphLayoutMaxIterations = useSettingsStore.use.graphLayoutMaxIterations()
|
126 |
|
127 |
const enableHealthCheck = useSettingsStore.use.enableHealthCheck()
|
128 |
-
|
129 |
const setEnableNodeDrag = useCallback(
|
130 |
() => useSettingsStore.setState((pre) => ({ enableNodeDrag: !pre.enableNodeDrag })),
|
131 |
[]
|
@@ -197,7 +197,7 @@ export default function Settings() {
|
|
197 |
}, [])
|
198 |
|
199 |
const { t } = useTranslation();
|
200 |
-
|
201 |
const saveSettings = () => setOpened(false);
|
202 |
const toggleSettings = () => setOpened(!opened);
|
203 |
|
@@ -205,9 +205,9 @@ export default function Settings() {
|
|
205 |
<>
|
206 |
<Popover open={opened}>
|
207 |
<PopoverTrigger asChild>
|
208 |
-
<Button
|
209 |
-
variant={controlButtonVariant}
|
210 |
-
tooltip={t('graphPanel.sideBar.settings.settings')}
|
211 |
size="icon"
|
212 |
onClick={toggleSettings}
|
213 |
>
|
|
|
125 |
const graphLayoutMaxIterations = useSettingsStore.use.graphLayoutMaxIterations()
|
126 |
|
127 |
const enableHealthCheck = useSettingsStore.use.enableHealthCheck()
|
128 |
+
|
129 |
const setEnableNodeDrag = useCallback(
|
130 |
() => useSettingsStore.setState((pre) => ({ enableNodeDrag: !pre.enableNodeDrag })),
|
131 |
[]
|
|
|
197 |
}, [])
|
198 |
|
199 |
const { t } = useTranslation();
|
200 |
+
|
201 |
const saveSettings = () => setOpened(false);
|
202 |
const toggleSettings = () => setOpened(!opened);
|
203 |
|
|
|
205 |
<>
|
206 |
<Popover open={opened}>
|
207 |
<PopoverTrigger asChild>
|
208 |
+
<Button
|
209 |
+
variant={controlButtonVariant}
|
210 |
+
tooltip={t('graphPanel.sideBar.settings.settings')}
|
211 |
size="icon"
|
212 |
onClick={toggleSettings}
|
213 |
>
|