diff --git a/crates/compiler/checkmate/www/src/App.tsx b/crates/compiler/checkmate/www/src/App.tsx index 5c407310858..d01c9130861 100644 --- a/crates/compiler/checkmate/www/src/App.tsx +++ b/crates/compiler/checkmate/www/src/App.tsx @@ -1,15 +1,10 @@ import React from "react"; import FileInput, { LoadedEvents } from "./components/FileInput"; import Ui from "./components/Ui"; -import data from "./checkmate.json"; -import { AllEvents } from "./schema"; import { BrowserRouter } from "react-router-dom"; export default function App() { - const [events, setEvents] = React.useState({ - kind: "ok", - events: data as AllEvents, - }); + const [events, setEvents] = React.useState(null); return ( diff --git a/crates/compiler/checkmate/www/src/components/Ui.tsx b/crates/compiler/checkmate/www/src/components/Ui.tsx index 1a970ce225e..aaf7ef6649e 100644 --- a/crates/compiler/checkmate/www/src/components/Ui.tsx +++ b/crates/compiler/checkmate/www/src/components/Ui.tsx @@ -66,7 +66,14 @@ export default function Ui({ events }: UiProps): JSX.Element { selectedEpochs={selectedEpochs} /> -
+
+ {selectedEpochs.length === 0 && ( + + + Select an event to view. + + + )} {subsTop !== undefined && ( );