Skip to content

Commit 6dde612

Browse files
committed
Updated BrixPage
1 parent 8140d83 commit 6dde612

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎src/app/brix/page.tsx‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { useEffect } from "react";
44
import { useBoot, useSecret, useTheme } from "@context";
5-
import { BootView } from "@components/boot";
6-
import { BackgroundView } from "@components/background";
5+
import { BrixBoot } from "@components/boot";
6+
import { BrixBackground } from "@components/background";
77
import { Menu } from "@components/xmb-menu";
88
import { useRouter } from "next/navigation";
99

@@ -14,14 +14,15 @@ export function BrixPage() {
1414

1515
useEffect(() => {
1616

17+
if (!brixStore) return;
1718
if (!brixStore.isUnlocked) {
1819
brixStore.unlock();
1920
}
2021

2122
brixStore.enable();
22-
router.replace("/");
23+
router.push("/");
2324

24-
}, []);
25+
}, [brixStore]);
2526

2627
const { isBootVisible } = useBoot();
2728
const { currentTheme, font } = useTheme();
@@ -35,12 +36,10 @@ export function BrixPage() {
3536
{
3637
isBootVisible
3738
?
38-
<>
39-
<BootView />
40-
</>
39+
<BrixBoot />
4140
:
4241
<>
43-
<BackgroundView />
42+
<BrixBackground />
4443
{clock}
4544
<Menu />
4645
</>

0 commit comments

Comments
 (0)