mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Add static data for now
This commit is contained in:
parent
18f381e782
commit
828b1bd060
2 changed files with 551 additions and 1 deletions
|
@ -1,9 +1,14 @@
|
|||
import React from "react";
|
||||
import FileInput, { LoadedEvents } from "./components/FileInput";
|
||||
import Ui from "./components/Ui";
|
||||
import data from "./checkmate.json";
|
||||
import { AllEvents } from "./schema";
|
||||
|
||||
export default function App() {
|
||||
const [events, setEvents] = React.useState<LoadedEvents | null>(null);
|
||||
const [events, setEvents] = React.useState<LoadedEvents | null>({
|
||||
kind: "ok",
|
||||
events: data as AllEvents,
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="w-screen h-screen p-2 bg-gray-100">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue