mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Scroll to epoch
This commit is contained in:
parent
e3129032e8
commit
8069d3ad34
6 changed files with 144 additions and 25 deletions
|
@ -3,6 +3,7 @@ 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<LoadedEvents | null>({
|
||||
|
@ -11,14 +12,16 @@ export default function App() {
|
|||
});
|
||||
|
||||
return (
|
||||
<div className="w-screen h-screen p-2 bg-gray-100 flex flex-col">
|
||||
<div>
|
||||
<FileInput setResult={setEvents} />
|
||||
<BrowserRouter>
|
||||
<div className="w-screen h-screen p-2 bg-gray-100 flex flex-col">
|
||||
<div>
|
||||
<FileInput setResult={setEvents} />
|
||||
</div>
|
||||
<div className="flex-1 overflow-hidden">
|
||||
<EventsWrapper events={events} />
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex-1 overflow-hidden">
|
||||
<EventsWrapper events={events} />
|
||||
</div>
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue