From ceb5d6c20d73ee582bf22fbb14990b7c240a0ee8 Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Wed, 27 Sep 2023 20:03:52 -0700 Subject: [PATCH] Clean up Typescript imports --- ui/src/TileExchange.tsx | 2 +- ui/src/UI.tsx | 2 +- ui/src/index.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/TileExchange.tsx b/ui/src/TileExchange.tsx index e2a9094..73b8f30 100644 --- a/ui/src/TileExchange.tsx +++ b/ui/src/TileExchange.tsx @@ -1,7 +1,7 @@ import {addNTimes, PlayableLetterData} from "./utils"; import {useEffect, useState} from "react"; import {Modal} from "./Modal"; -import {Letter as LetterData} from "word_grid"; +import {Letter as LetterData} from "../../pkg/word_grid"; import * as React from "react"; export function TileExchangeModal(props: { diff --git a/ui/src/UI.tsx b/ui/src/UI.tsx index fdfe286..c569bb3 100644 --- a/ui/src/UI.tsx +++ b/ui/src/UI.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import {ChangeEvent, JSX} from "react"; -import {PlayerAndScore} from "word_grid"; +import {PlayerAndScore} from "../../pkg/word_grid"; import { CellType, cellTypeToDetails, diff --git a/ui/src/index.tsx b/ui/src/index.tsx index 591daa0..84b1400 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -1,5 +1,4 @@ -import init, {GameWasm} from '../../pkg/word_grid.js'; -import {Game} from "./Game"; +import init from '../../pkg/word_grid.js'; import {createRoot} from "react-dom/client"; import * as React from "react"; import {Menu} from "./Menu";