File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ export default function Layout ( {
4+ children
5+ } : Readonly < { children : React . ReactNode } > ) {
6+ return (
7+ < div >
8+ < div className = "flex h-[3.125rem] items-center border-b border-dashed px-4" >
9+ < h1 className = "text-2xl font-semibold leading-none" > Jobs</ h1 >
10+ </ div >
11+ < div className = "h-[calc(100vh-3.125rem)] overflow-y-auto p-3" >
12+ { children }
13+ </ div >
14+ </ div >
15+ ) ;
16+ }
Original file line number Diff line number Diff line change @@ -3,13 +3,8 @@ import { Skeleton } from "@/components/ui/skeleton";
33function Loading ( ) {
44 return (
55 < div >
6- { /* Header */ }
7- < div className = "flex h-[3.125rem] items-center border-b border-dashed px-4" >
8- < Skeleton className = "h-7 w-20 bg-zinc-800" />
9- </ div >
10-
116 { /* Content */ }
12- < div className = "h-[calc(100vh-3.125rem)] space-y-3 overflow-y-auto p-3 " >
7+ < div className = "h-[calc(100vh-3.125rem)] space-y-3 overflow-y-auto" >
138 { /* Filter Skeleton */ }
149 < div className = "space-y-2 rounded-lg border border-zinc-800 bg-zinc-900 p-4" >
1510 < div className = "flex items-center justify-between" >
Original file line number Diff line number Diff line change @@ -32,16 +32,7 @@ async function Page({ searchParams }: { searchParams: JobsPageSearchParams }) {
3232 const result = await getJobs ( filters ) ;
3333 const jobs = result ?. jobs || [ ] ;
3434
35- return (
36- < div >
37- < div className = "flex h-[3.125rem] items-center border-b border-dashed px-4" >
38- < h1 className = "text-2xl font-semibold leading-none" > Jobs</ h1 >
39- </ div >
40- < div className = "h-[calc(100vh-3.125rem)] space-y-3 overflow-y-auto p-3" >
41- < JobList jobs = { jobs } />
42- </ div >
43- </ div >
44- ) ;
35+ return < JobList jobs = { jobs } /> ;
4536}
4637
4738export default Page ;
You can’t perform that action at this time.
0 commit comments