aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/ui/src/components/bottom-bar.tsx
diff options
context:
space:
mode:
authorNtskwK <natsukawa247@outlook.com>2026-03-26 09:56:05 +0800
committerNtskwK <natsukawa247@outlook.com>2026-03-26 09:56:05 +0800
commite606f5da1d512ec18e6ae1188be672c0cefe020a (patch)
tree602eeeada7ad940393aa65ec4e4cc00fa1da5d31 /packages/ui/src/components/bottom-bar.tsx
parenta3b0bc188a72dcc8fedb77d7832c839541fb1dae (diff)
downloadDropOut-e606f5da1d512ec18e6ae1188be672c0cefe020a.tar.gz
DropOut-e606f5da1d512ec18e6ae1188be672c0cefe020a.zip
style: format code and update biome schema
Diffstat (limited to 'packages/ui/src/components/bottom-bar.tsx')
-rw-r--r--packages/ui/src/components/bottom-bar.tsx14
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/ui/src/components/bottom-bar.tsx b/packages/ui/src/components/bottom-bar.tsx
index 8f70985..2746e00 100644
--- a/packages/ui/src/components/bottom-bar.tsx
+++ b/packages/ui/src/components/bottom-bar.tsx
@@ -21,13 +21,17 @@ export function BottomBar() {
const account = useAuthStore((state) => state.account);
const instances = useInstanceStore((state) => state.instances);
const activeInstance = useInstanceStore((state) => state.activeInstance);
- const setActiveInstance = useInstanceStore((state) => state.setActiveInstance);
+ const setActiveInstance = useInstanceStore(
+ (state) => state.setActiveInstance,
+ );
const selectedVersion = useGameStore((state) => state.selectedVersion);
const setSelectedVersion = useGameStore((state) => state.setSelectedVersion);
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 [showLoginModal, setShowLoginModal] = useState(false);
@@ -39,7 +43,7 @@ export function BottomBar() {
}
setSelectedVersion(nextVersion);
- }, [activeInstance?.id, activeInstance?.versionId, selectedVersion, setSelectedVersion]);
+ }, [activeInstance?.versionId, selectedVersion, setSelectedVersion]);
const handleInstanceChange = useCallback(
async (instanceId: string) => {
@@ -47,7 +51,9 @@ export function BottomBar() {
return;
}
- const nextInstance = instances.find((instance) => instance.id === instanceId);
+ const nextInstance = instances.find(
+ (instance) => instance.id === instanceId,
+ );
if (!nextInstance) {
return;
}