From b2aa09e481795d736d0593981b336c0d6a2f07ae Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Wed, 17 Dec 2025 03:44:05 +0000 Subject: [PATCH] Simplify clearance mode switching animation and toasts Remove unnecessary setTimeout calls for clearance mode switching and toast notifications in the AeThexOS component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 21cc4729-4694-409c-8f3d-e946b1d61bfb Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/rpkLa5R Replit-Helium-Checkpoint-Created: true --- client/src/pages/os.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/client/src/pages/os.tsx b/client/src/pages/os.tsx index c9a0b7d..c145d39 100644 --- a/client/src/pages/os.tsx +++ b/client/src/pages/os.tsx @@ -205,16 +205,9 @@ export default function AeThexOS() { const switchClearance = useCallback(() => { const newMode: ClearanceMode = clearanceMode === 'foundation' ? 'corp' : 'foundation'; - setIsSwitchingClearance(true); setShowStartMenu(false); - - setTimeout(() => { - setClearanceMode(newMode); - setTimeout(() => { - setIsSwitchingClearance(false); - addToast(`Switched to ${CLEARANCE_THEMES[newMode].name}`, 'success'); - }, 800); - }, 600); + setClearanceMode(newMode); + addToast(`Switched to ${CLEARANCE_THEMES[newMode].name}`, 'success'); }, [clearanceMode, addToast]); useEffect(() => {