Skip to content

Commit 90421ae

Browse files
committed
refactor: clean up App component by removing unused settings-related code
- Removed commented-out imports, state, and handlers related to SettingsDialog in App.tsx to streamline the component and improve code clarity.
1 parent 38ee7bc commit 90421ae

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/frontend/src/App.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { useAppConfig } from "./hooks/useAppConfig";
1313
import DiscordButton from './ui/DiscordButton';
1414
import { MainMenuConfig } from './ui/MainMenu';
1515
import AuthDialog from './ui/AuthDialog';
16-
// import SettingsDialog from './ui/SettingsDialog'; // Removed import
1716
import Collab from './lib/collab/Collab';
1817

1918
// Utils
@@ -39,15 +38,8 @@ export default function App() {
3938
leaveSharedPad
4039
} = usePadTabs(isAuthenticated);
4140

42-
// const [showSettingsModal, setShowSettingsModal] = useState(false); // Removed state
43-
const [showPadsModal, setShowPadsModal] = useState(false); // Added state for PadsModal
4441
const [excalidrawAPI, excalidrawRefCallback] = useCallbackRefState<ExcalidrawImperativeAPI>();
4542

46-
47-
// const handleCloseSettingsModal = () => { // Removed handler
48-
// setShowSettingsModal(false);
49-
// };
50-
5143
const handleOnScrollChange = () => {
5244
lockEmbeddables(excalidrawAPI?.getAppState());
5345
};

0 commit comments

Comments
 (0)