mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Fix logout button
This commit is contained in:
@@ -102,7 +102,10 @@ const UserMenu: React.FC = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<UnstyledButton
|
<UnstyledButton
|
||||||
onClick={() => void handleLogout}
|
onClick={() => {
|
||||||
|
void handleLogout();
|
||||||
|
setOpened(false);
|
||||||
|
}}
|
||||||
px="sm"
|
px="sm"
|
||||||
py="xs"
|
py="xs"
|
||||||
color="red"
|
color="red"
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
import { useWorkspaceData } from '../contexts/WorkspaceDataContext';
|
import { useWorkspaceData } from '../contexts/WorkspaceDataContext';
|
||||||
import { useTheme } from '../contexts/ThemeContext';
|
import { useTheme } from '../contexts/ThemeContext';
|
||||||
import { useWorkspaceOperations } from './useWorkspaceOperations';
|
import { useWorkspaceOperations } from './useWorkspaceOperations';
|
||||||
import type { Workspace } from '@/types/models';
|
import type { Workspace, DEFAULT_WORKSPACE_SETTINGS } from '@/types/models';
|
||||||
import type { MantineColorScheme } from '@mantine/core';
|
import type { MantineColorScheme } from '@mantine/core';
|
||||||
|
|
||||||
interface UseWorkspaceResult {
|
interface UseWorkspaceResult {
|
||||||
currentWorkspace: Workspace | null;
|
currentWorkspace: Workspace | null;
|
||||||
workspaces: Workspace[];
|
workspaces: Workspace[];
|
||||||
settings:
|
settings: Workspace | typeof DEFAULT_WORKSPACE_SETTINGS;
|
||||||
| Workspace
|
|
||||||
| typeof import('@/types/models').DEFAULT_WORKSPACE_SETTINGS;
|
|
||||||
updateSettings: (newSettings: Partial<Workspace>) => Promise<void>;
|
updateSettings: (newSettings: Partial<Workspace>) => Promise<void>;
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
colorScheme: MantineColorScheme;
|
colorScheme: MantineColorScheme;
|
||||||
|
|||||||
Reference in New Issue
Block a user