mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
update guesser
This commit is contained in:
1 parent
6a05f11001
commit
f09663e1c0
4 files changed
+25
-27
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import { Box } from "@radix-ui/themes";
|
||||
import { useEffect } from "react";
|
||||
import { awaitableModelDefinitions } from "../../core/awaitables/modelDefinitions";
|
||||
import { awaitableProvisionDefinitions } from "../../core/awaitables/provisionDefinitions";
|
||||
import { api } from "../../core/blitzkit/api";
|
||||
import { tankToDuelMember } from "../../core/blitzkit/tankToDuelMember";
|
||||
import { Var } from "../../core/radix/var";
|
||||
import { Duel } from "../../stores/duel";
|
||||
@@ -10,8 +9,8 @@ import { Tankopedia } from "../../stores/tankopedia";
|
||||
import "./index.css";
|
||||
|
||||
const [modelDefinitions, provisionDefinitions] = await Promise.all([
|
||||
awaitableModelDefinitions,
|
||||
awaitableProvisionDefinitions,
|
||||
api.modelDefinitions(),
|
||||
api.provisionDefinitions(),
|
||||
]);
|
||||
|
||||
export function GuessBackground() {
|
||||
@@ -42,7 +41,7 @@ export function GuessBackground() {
|
||||
? "accent-2"
|
||||
: guessState === GuessState.Correct
|
||||
? "jade-3"
|
||||
: "tomato-3"
|
||||
: "tomato-3",
|
||||
),
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user