Skip to content

Commit 8140d83

Browse files
committed
disabled PS2 secret page
1 parent 6dede9e commit 8140d83

1 file changed

Lines changed: 52 additions & 48 deletions

File tree

‎src/app/ps2/page.tsx‎

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,53 @@
1-
'use client';
2-
3-
import { useEffect } from "react";
4-
import { useBoot, useSecret, useTheme } from "@context";
5-
import { BootView, Ps2Boot } from "@components/boot";
6-
import { BackgroundView, PS2Background } from "@components/background";
7-
import { Menu } from "@components/xmb-menu";
8-
9-
export function Ps2Page() {
10-
11-
const { ps2Store } = useSecret();
12-
13-
useEffect(() => {
14-
15-
if (ps2Store.isUnlocked) {
16-
ps2Store.unlock();
17-
}
18-
19-
ps2Store.enable();
20-
21-
}, []);
22-
23-
const { isBootVisible } = useBoot();
24-
const { currentTheme, font } = useTheme();
25-
26-
const themeClassName = currentTheme ? currentTheme.className : 'default-theme';
27-
const fontClassName = font ? font.className : 'default-font';
28-
const clock = currentTheme?.clock;
29-
30-
return (
31-
<div className={`root-container ${themeClassName} ${fontClassName}`}>
32-
{
33-
isBootVisible
34-
?
35-
<>
36-
<Ps2Boot />
37-
</>
38-
:
39-
<>
40-
<PS2Background />
41-
{clock}
42-
<Menu />
43-
</>
44-
}
45-
</div>
46-
);
1+
// 'use client';
2+
3+
// import { useEffect } from "react";
4+
// import { useBoot, useSecret, useTheme } from "@context";
5+
// import { BootView, Ps2Boot } from "@components/boot";
6+
// import { BackgroundView, PS2Background } from "@components/background";
7+
// import { Menu } from "@components/xmb-menu";
8+
9+
// export function Ps2Page() {
10+
11+
// const { ps2Store } = useSecret();
12+
13+
// useEffect(() => {
14+
15+
// if (ps2Store.isUnlocked) {
16+
// ps2Store.unlock();
17+
// }
18+
19+
// ps2Store.enable();
20+
21+
// }, []);
22+
23+
// const { isBootVisible } = useBoot();
24+
// const { currentTheme, font } = useTheme();
25+
26+
// const themeClassName = currentTheme ? currentTheme.className : 'default-theme';
27+
// const fontClassName = font ? font.className : 'default-font';
28+
// const clock = currentTheme?.clock;
29+
30+
// return (
31+
// <div className={`root-container ${themeClassName} ${fontClassName}`}>
32+
// {
33+
// isBootVisible
34+
// ?
35+
// <>
36+
// <Ps2Boot />
37+
// </>
38+
// :
39+
// <>
40+
// <PS2Background />
41+
// {clock}
42+
// <Menu />
43+
// </>
44+
// }
45+
// </div>
46+
// );
47+
// }
48+
49+
// export { Ps2Page as default };
50+
51+
export default function Page() {
52+
return null;
4753
}
48-
49-
export { Ps2Page as default };

0 commit comments

Comments
 (0)