Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore(page:home): add page title
Browse files Browse the repository at this point in the history
  ## what
  - add page title

  ## how

  ## why

  ## where
  - ./src/app/page.tsx

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 3, 2024
1 parent 5b3898a commit 0d4506b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export default function Home() {
const { data, isLoading, isError, isSuccess } = useFetchLiveSubmission(pollIdRef.current);

if (isLoading || !data) {
return <DataTableLoading numColumns={9} numRows={9} />
;
return (
<section>
<h1 className="text-3xl">Live Submissions</h1>
<DataTableLoading numColumns={9} numRows={8} />
</section>
);
}

if (isError) {
Expand All @@ -31,8 +35,9 @@ export default function Home() {
}

return (
<div>
<section>
<h1 className="text-3xl">Live Submissions</h1>
<DataTable data={data} columns={columns} />
</div>
</section>
);
}

0 comments on commit 0d4506b

Please sign in to comment.