Added table with row actions and pagination. next up: filtering
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { DataTable } from "./data-table";
|
||||
import { columns } from "./columns";
|
||||
import { customerData } from "./customer-data";
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
@@ -9,7 +12,13 @@ const page = () => {
|
||||
<Button>Add Customer</Button>
|
||||
</div>
|
||||
|
||||
<div>A table of customers</div>
|
||||
<div>
|
||||
<p>A table of customers</p>
|
||||
|
||||
<div className="w-full">
|
||||
<DataTable columns={columns} data={customerData} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user