We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8937439 commit 8460348Copy full SHA for 8460348
1 file changed
apps/web/src/components/Navbar/Navbar.tsx
@@ -18,6 +18,7 @@ export const Navbar = () => {
18
const navItems = useNavItems();
19
const { t } = useTranslation('layout');
20
const navigate = useNavigate();
21
+ const endSession = useAppStore((store) => store.endSession);
22
23
// This is to prevent ugly styling when resizing the viewport
24
const isDesktop = useIsDesktop();
@@ -83,6 +84,10 @@ export const Navbar = () => {
83
84
isActive={false}
85
label={t('navLinks.endSession')}
86
url="#"
87
+ onClick={() => {
88
+ endSession();
89
+ void navigate({ to: '/session/start-session' });
90
+ }}
91
/>
92
)}
93
</div>
0 commit comments