Start using the code-generated types module

This commit is contained in:
Savanni D'Gerinel 2024-11-19 16:21:16 -05:00
parent e20ec206a8
commit 2ab6e88634
5 changed files with 2804 additions and 43 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,8 @@
"react-scripts": "5.0.1",
"react-use-websocket": "^4.11.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"visions-types": "../visions-types"
},
"scripts": {
"start": "react-scripts start",

View File

@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import './Tabletop.css';
import { RGB } from 'visions';
import { RGB } from 'visions-types';
interface TabletopElementProps {
backgroundColor: RGB;

View File

@ -1,6 +1,6 @@
import React, { createContext, PropsWithChildren, useEffect, useReducer } from "react";
import useWebSocket from "react-use-websocket";
import { Message, Tabletop } from "visions";
import { Message, Tabletop } from "visions-types";
type TabletopState = {
tabletop: Tabletop;

View File

@ -6,11 +6,13 @@
.player-view__left-panel {
flex-grow: 0;
min-width: 100px;
max-width: 20%;
}
.player-view__right-panel {
flex-grow: 0;
min-width: 100px;
max-width: 20%;
}