Skip to content

Commit fe200e1

Browse files
committed
Add ToS link to the appshell sidebar
1 parent 0d71b19 commit fe200e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ui/components/AppShell/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Anchor,
23
AppShell,
34
Divider,
45
Group,
@@ -198,6 +199,7 @@ const AcmAppShell: React.FC<AcmAppShellProps> = ({
198199
}
199200
const [opened, { toggle }] = useDisclosure();
200201
const { userData } = useAuth();
202+
const navigate = useNavigate();
201203
return (
202204
<AppShell
203205
padding="md"
@@ -230,6 +232,9 @@ const AcmAppShell: React.FC<AcmAppShellProps> = ({
230232
<Text size="xs" fw={500}>
231233
Revision <code>{getCurrentRevision()}</code>
232234
</Text>
235+
<Anchor component="button" size="xs" fw={500} onClick={() => navigate('/tos')}>
236+
Terms of Service
237+
</Anchor>
233238
</AppShell.Section>
234239
</AppShell.Navbar>
235240
)}

0 commit comments

Comments
 (0)