Skip to content

Commit

Permalink
Merge pull request #32 from punky-lab/wyy
Browse files Browse the repository at this point in the history
Wyy
  • Loading branch information
YuChanGongzhu authored Nov 6, 2024
2 parents 8b42a14 + dc9b31f commit c877822
Show file tree
Hide file tree
Showing 21 changed files with 878 additions and 565 deletions.
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import User from "@/components/MainUI/User";
import { UIState } from "@/lib/UI";
import { ReactNode, useCallback, useState } from "react";
import Wallet from "@/components/MainUI/Wallet";
import Init from "@/components/MainUI/Main2";

export default function Home() {
const [currentUI, setCurrentUI] = useState<UIState>("main");
const popUpClose = useCallback(() => setCurrentUI("main"), []);

const UIShowing = new Map<UIState, ReactNode>([
["main", <Main key="main" switchTo={(target) => setCurrentUI(target)} />],
["main", <Init key="main" switchTo={(target) => setCurrentUI(target)} />],
["store", <Store key="store" onClose={popUpClose} />],
["user", <User key="user" onClose={popUpClose} />],
["achieve", <Achieve key="achieve" onClose={popUpClose} />],
Expand Down
9 changes: 9 additions & 0 deletions assets/icons/v2/ball.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/battery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/border.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/coin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/game.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/hand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/v2/micro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c877822

Please sign in to comment.