Add static data for now

This commit is contained in:
Ayaz Hafiz 2023-07-17 10:24:44 -05:00
parent 18f381e782
commit 828b1bd060
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 551 additions and 1 deletions

View file

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