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";