Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Jan 20, 2025
1 parent 2b7ec1d commit da7d016
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.8.44",
"type": "module",
"scripts": {
"dev": "vite dev --profile --mode development",
"dev": "vite dev --mode development",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri",
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ async fn setup_inner(
state: tauri::State<'_, UniverseAppState>,
app: tauri::AppHandle,
) -> Result<(), anyhow::Error> {
info!(target: LOG_TARGET, "SETUP_INNER");
app.emit(
"setup_message",
SetupStatusEvent {
Expand Down
17 changes: 9 additions & 8 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default function App() {
canvasElement.style.opacity = isShuttingDown || isSettingUp ? '0' : '1';
}
}, [isShuttingDown, isSettingUp]);
console.debug(`isSettingUp= ${isSettingUp}`);

const showSetup = isSettingUp && !isShuttingDown && isAppReady;

return (
<ThemeProvider>
Expand All @@ -56,26 +57,26 @@ export default function App() {
<MotionConfig reducedMotion="user">
<FloatingElements />
<AnimatePresence mode="popLayout">
{!isAppReady ? (
{!isAppReady && (
<AppContentContainer key="splashscreen" initial="hidden">
<Splashscreen />
</AppContentContainer>
) : null}
{isSettingUp && isAppReady ? (
)}
{showSetup ? (
<AppContentContainer key="setup" initial="hidden">
<Setup />
</AppContentContainer>
) : null}
{!isShuttingDown && !isSettingUp && isAppReady ? (
{!isShuttingDown && !isSettingUp && isAppReady && (
<AppContentContainer key="main" initial="dashboardInitial">
<MainView />
</AppContentContainer>
) : null}
{isShuttingDown ? (
)}
{isShuttingDown && isAppReady && (
<AppContentContainer key="shutdown" initial="hidden">
<ShuttingDownScreen />
</AppContentContainer>
) : null}
)}
</AnimatePresence>
</MotionConfig>
</LazyMotion>
Expand Down

0 comments on commit da7d016

Please sign in to comment.