diff options
| author | 2026-03-26 09:56:05 +0800 | |
|---|---|---|
| committer | 2026-03-26 09:56:05 +0800 | |
| commit | e606f5da1d512ec18e6ae1188be672c0cefe020a (patch) | |
| tree | 602eeeada7ad940393aa65ec4e4cc00fa1da5d31 /packages/ui/src/pages/instances-view.tsx | |
| parent | a3b0bc188a72dcc8fedb77d7832c839541fb1dae (diff) | |
| download | DropOut-e606f5da1d512ec18e6ae1188be672c0cefe020a.tar.gz DropOut-e606f5da1d512ec18e6ae1188be672c0cefe020a.zip | |
style: format code and update biome schema
Diffstat (limited to 'packages/ui/src/pages/instances-view.tsx')
| -rw-r--r-- | packages/ui/src/pages/instances-view.tsx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/ui/src/pages/instances-view.tsx b/packages/ui/src/pages/instances-view.tsx index 07a2135..7bb3302 100644 --- a/packages/ui/src/pages/instances-view.tsx +++ b/packages/ui/src/pages/instances-view.tsx @@ -35,7 +35,9 @@ export function InstancesView() { const startGame = useGameStore((state) => state.startGame); const stopGame = useGameStore((state) => state.stopGame); const runningInstanceId = useGameStore((state) => state.runningInstanceId); - const launchingInstanceId = useGameStore((state) => state.launchingInstanceId); + const launchingInstanceId = useGameStore( + (state) => state.launchingInstanceId, + ); const stoppingInstanceId = useGameStore((state) => state.stoppingInstanceId); const [isImporting, setIsImporting] = useState(false); const [repairing, setRepairing] = useState(false); @@ -191,7 +193,8 @@ export function InstancesView() { const isRunning = runningInstanceId === instance.id; const isLaunching = launchingInstanceId === instance.id; const isStopping = stoppingInstanceId === instance.id; - const otherInstanceRunning = runningInstanceId !== null && !isRunning; + const otherInstanceRunning = + runningInstanceId !== null && !isRunning; return ( <li @@ -259,7 +262,10 @@ export function InstancesView() { try { await instancesStore.setActiveInstance(instance); } catch (error) { - console.error("Failed to set active instance:", error); + console.error( + "Failed to set active instance:", + error, + ); toast.error("Error setting active instance"); return; } @@ -284,7 +290,9 @@ export function InstancesView() { () => undefined, ); }} - disabled={otherInstanceRunning || isLaunching || isStopping} + disabled={ + otherInstanceRunning || isLaunching || isStopping + } > {isLaunching || isStopping ? ( <span className="text-xs">...</span> |