This commit is contained in:
2025-09-03 21:11:43 -04:00
parent d203fe4141
commit ce29ab72ae
10 changed files with 55 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import { createSignal, useContext } from "solid-js";
import { createSignal, onMount, useContext } from "solid-js";
import { playerColor } from "~/profile";
import { TableContext } from "./Table";
import { Stylable } from "./toolbox";
@@ -16,6 +16,8 @@ export default (props: { playerKey: string } & Stylable) => {
const game = useContext(GameContext);
onMount(() => console.log("Player mounted"));
return (
<div
id={`player-${props.playerKey}`}