Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 0b9b0c9

Browse files
committed
fix: always call hook
1 parent 7ef8922 commit 0b9b0c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "client",
3-
"version": "1.5.1-beta",
3+
"version": "1.5.2-beta",
44
"scripts": {
55
"dev": "npm-run-all --parallel dev:*",
66
"dev:run": "FORCE_COLOR=1 vite",

apps/client/src/routes/Main/Home/Countdown.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default function Countdown({
1818
}) {
1919
const { data: dtt } = useDtt();
2020
const isLoaded = !!dtt;
21+
const bgColor =
22+
useToken("colors", useColorModeValue("gray.300", "gray.700")) + "55";
2123

2224
const activeIndex = dtt?.periods.findIndex(
2325
({ startTime, endTime }) =>
@@ -45,9 +47,7 @@ export default function Countdown({
4547
<Flex
4648
direction={"column"}
4749
p={3}
48-
bg={
49-
useToken("colors", useColorModeValue("gray.300", "gray.700")) + "55"
50-
}
50+
bg={bgColor}
5151
rounded={"lg"}
5252
align={"center"}
5353
>

0 commit comments

Comments
 (0)