yangdx
commited on
Commit
·
cd4e8de
1
Parent(s):
56a0241
style: change double quotes to single quotes in ZoomControl.tsx
Browse files
lightrag_webui/src/components/graph/ZoomControl.tsx
CHANGED
@@ -3,7 +3,7 @@ import { useCallback } from 'react'
|
|
3 |
import Button from '@/components/ui/Button'
|
4 |
import { ZoomInIcon, ZoomOutIcon, FullscreenIcon } from 'lucide-react'
|
5 |
import { controlButtonVariant } from '@/lib/constants'
|
6 |
-
import { useTranslation } from
|
7 |
|
8 |
/**
|
9 |
* Component that provides zoom controls for the graph viewer.
|
@@ -18,16 +18,16 @@ const ZoomControl = () => {
|
|
18 |
|
19 |
return (
|
20 |
<>
|
21 |
-
<Button variant={controlButtonVariant} onClick={handleZoomIn} tooltip={t(
|
22 |
<ZoomInIcon />
|
23 |
</Button>
|
24 |
-
<Button variant={controlButtonVariant} onClick={handleZoomOut} tooltip={t(
|
25 |
<ZoomOutIcon />
|
26 |
</Button>
|
27 |
<Button
|
28 |
variant={controlButtonVariant}
|
29 |
onClick={handleResetZoom}
|
30 |
-
tooltip={t(
|
31 |
size="icon"
|
32 |
>
|
33 |
<FullscreenIcon />
|
|
|
3 |
import Button from '@/components/ui/Button'
|
4 |
import { ZoomInIcon, ZoomOutIcon, FullscreenIcon } from 'lucide-react'
|
5 |
import { controlButtonVariant } from '@/lib/constants'
|
6 |
+
import { useTranslation } from 'react-i18next';
|
7 |
|
8 |
/**
|
9 |
* Component that provides zoom controls for the graph viewer.
|
|
|
18 |
|
19 |
return (
|
20 |
<>
|
21 |
+
<Button variant={controlButtonVariant} onClick={handleZoomIn} tooltip={t('graphPanel.sideBar.zoomControl.zoomIn')} size="icon">
|
22 |
<ZoomInIcon />
|
23 |
</Button>
|
24 |
+
<Button variant={controlButtonVariant} onClick={handleZoomOut} tooltip={t('graphPanel.sideBar.zoomControl.zoomOut')} size="icon">
|
25 |
<ZoomOutIcon />
|
26 |
</Button>
|
27 |
<Button
|
28 |
variant={controlButtonVariant}
|
29 |
onClick={handleResetZoom}
|
30 |
+
tooltip={t('graphPanel.sideBar.zoomControl.resetZoom')}
|
31 |
size="icon"
|
32 |
>
|
33 |
<FullscreenIcon />
|