Skip to content

Commit 30ca172

Browse files
committed
refactor: reorganize imports and enhance MainMenu component
- Moved the import statements for AccountDialog and MainMenu.scss to improve code organization. - Added spacing for better readability in the MainMenu.tsx file.
1 parent 97c2cc8 commit 30ca172

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/frontend/src/ui/MainMenu.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,24 @@ import type { ExcalidrawImperativeAPI } from '@atyrode/excalidraw/types';
44
import type { MainMenu as MainMenuType } from '@atyrode/excalidraw';
55

66
import { LogOut, SquarePlus, LayoutDashboard, User, Text, Settings, Terminal, FileText, FlaskConical } from 'lucide-react';
7-
import AccountDialog from './AccountDialog';
87
import md5 from 'crypto-js/md5';
8+
99
import { useLogout } from '../hooks/useLogout';
1010
import { useAuthStatus } from '../hooks/useAuthStatus';
11+
1112
import { ExcalidrawElementFactory, PlacementMode } from '../lib/elementFactory';
12-
import "./MainMenu.scss";
1313
import { INITIAL_APP_DATA } from '../constants';
1414
import { capture } from '../lib/posthog';
15+
import "./MainMenu.scss";
16+
import AccountDialog from './AccountDialog';
17+
18+
1519
// Function to generate gravatar URL
1620
const getGravatarUrl = (email: string, size = 32) => {
1721
const hash = md5(email.toLowerCase().trim()).toString();
1822
return `https://www.gravatar.com/avatar/${hash}?s=${size}&d=identicon`;
1923
};
24+
2025
interface MainMenuConfigProps {
2126
MainMenu: typeof MainMenuType;
2227
excalidrawAPI: ExcalidrawImperativeAPI | null;

0 commit comments

Comments
 (0)