From cd3ea64e2562d5ff836289309edf3c56fa1bb8a4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 04:20:45 +0200 Subject: [PATCH] Format and refactor code in App.tsx --- src/app/App.tsx | 1686 ++++++++++++++++++++++++----------------------- 1 file changed, 858 insertions(+), 828 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index c79a30c9..10fd770d 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1232,10 +1232,8 @@ export function App({ store, initialStatusMessage }: AppProps) { const [sceneLoadingHeadlineDraft, setSceneLoadingHeadlineDraft] = useState( activeProjectScene.loadingScreen.headline ?? "" ); - const [ - sceneLoadingDescriptionDraft, - setSceneLoadingDescriptionDraft - ] = useState(activeProjectScene.loadingScreen.description ?? ""); + const [sceneLoadingDescriptionDraft, setSceneLoadingDescriptionDraft] = + useState(activeProjectScene.loadingScreen.description ?? ""); const [brushNameDraft, setBrushNameDraft] = useState(""); const [entityNameDraft, setEntityNameDraft] = useState(""); const [modelInstanceNameDraft, setModelInstanceNameDraft] = useState(""); @@ -2487,9 +2485,7 @@ export function App({ store, initialStatusMessage }: AppProps) { setStatusMessage("Created a new scene."); }; - const handleActiveSceneChange = ( - event: ChangeEvent - ) => { + const handleActiveSceneChange = (event: ChangeEvent) => { const nextSceneId = event.currentTarget.value; if (nextSceneId === editorState.activeSceneId) { @@ -6610,7 +6606,10 @@ export function App({ store, initialStatusMessage }: AppProps) {