finally building
This commit is contained in:
18
apps/admin/app/(main)/students/page.tsx
Normal file
18
apps/admin/app/(main)/students/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { columns, Student } from './columns';
|
||||
import { DataTable } from './data-table';
|
||||
import { db, students } from '@workspace/db';
|
||||
|
||||
async function getData(): Promise<Student[]> {
|
||||
const data = db.select().from(students);
|
||||
return data;
|
||||
}
|
||||
|
||||
export default async function DemoPage() {
|
||||
const data = await getData();
|
||||
|
||||
return (
|
||||
<div className="container mx-auto py-10">
|
||||
<DataTable columns={columns} data={data} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user