feat(web): add input display

This commit is contained in:
BennyKok
2023-12-18 13:48:52 +08:00
parent 0dec0015a5
commit 63f9706afa
3 changed files with 53 additions and 20 deletions
-14
View File
@@ -12,22 +12,8 @@ import { getRunsOutput } from "@/server/getRunsOutput";
export async function RunOutputs({ run_id }: { run_id: string }) {
const outputs = await getRunsOutput(run_id);
// console.log("Getting runs out put");
// const [outputs, setOutputs] =
// useState<Awaited<ReturnType<typeof getRunsOutput>>>();
// useEffect(() => {
// if (!run_id) return;
// // fetch(`/api/run?run_id=${run_id}`)
// // .then((x) => x.json())
// // .then((x) => setOutputs(x));
// callServerPromise(getRunsOutput(run_id).then((x) => setOutputs(x)));
// }, [run_id]);
return (
<Table className="table-fixed">
{/* <TableCaption>A list of your recent runs.</TableCaption> */}
<TableHeader className="bg-background top-0 sticky">
<TableRow>
<TableHead className="w-[200px]">File</TableHead>