This commit is contained in:
2025-09-03 22:50:32 -04:00
parent 46e7b60ade
commit b3e040f03f
8 changed files with 88 additions and 33 deletions

View File

@@ -17,7 +17,7 @@ import {
cx,
} from "~/fn";
import { me, mePromise } from "~/profile";
import Game from "./Game";
import Simple from "./games/simple";
import Player from "./Player";
import games from "@games/shared/games/index";
import { createStore, Store } from "solid-js/store";
@@ -157,7 +157,7 @@ export default (props: { tableKey: string }) => {
</Show>
</div>
<Show when={view() != null}>
<Game />
<Simple />
</Show>
<Show when={results() != null}>
<span class="bg-[var(--light)] text-[var(--dark)] rounded-[24px] border-2 border-[var(--dark)] absolute center p-4 shadow-lg text-[4em] text-center">

View File

@@ -5,11 +5,11 @@ import type {
SimpleResult,
} from "@games/shared/games/simple";
import { me } from "~/profile";
import Hand from "./Hand";
import Pile from "./Pile";
import { TableContext } from "./Table";
import Hand from "../Hand";
import Pile from "../Pile";
import { TableContext } from "../Table";
import { Portal } from "solid-js/web";
import FannedHand from "./FannedHand";
import FannedHand from "../FannedHand";
export const GameContext = createContext<{
view: Accessor<SimplePlayerView>;