lots of changes on making new experiments work

This commit is contained in:
Kyle Corbitt
2023-06-26 18:03:26 -07:00
parent dbc61b8672
commit 0646fc0ba3
17 changed files with 544 additions and 188 deletions

View File

@@ -1,7 +1,7 @@
import { Box, Center } from "@chakra-ui/react";
import { useRouter } from "next/router";
import OutputsTable from "~/components/OutputsTable";
import AppNav from "~/components/nav/AppNav";
import AppShell from "~/components/nav/AppShell";
import { api } from "~/utils/api";
export default function Experiment() {
@@ -14,19 +14,19 @@ export default function Experiment() {
if (!experiment.isLoading && !experiment.data) {
return (
<AppNav title="Experiment not found">
<AppShell title="Experiment not found">
<Center h="100vh">
<div>Experiment not found 😕</div>
</Center>
</AppNav>
</AppShell>
);
}
return (
<AppNav title={experiment.data?.label}>
<AppShell title={experiment.data?.label}>
<Box minH="100vh" mb={50}>
<OutputsTable experimentId={router.query.id as string | undefined} />
</Box>
</AppNav>
</AppShell>
);
}