Add metamigo-frontend
This commit is contained in:
parent
486f989494
commit
4e0b5ae215
46 changed files with 1695 additions and 0 deletions
3
apps/metamigo-frontend/app/voice/[id]/edit/page.tsx
Normal file
3
apps/metamigo-frontend/app/voice/[id]/edit/page.tsx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default function Page() {
|
||||
return <h1>Voice Edit</h1>;
|
||||
}
|
||||
0
apps/metamigo-frontend/app/voice/[id]/page.tsx
Normal file
0
apps/metamigo-frontend/app/voice/[id]/page.tsx
Normal file
0
apps/metamigo-frontend/app/voice/new/page.tsx
Normal file
0
apps/metamigo-frontend/app/voice/new/page.tsx
Normal file
46
apps/metamigo-frontend/app/voice/page.tsx
Normal file
46
apps/metamigo-frontend/app/voice/page.tsx
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
"use client";
|
||||
|
||||
import { GridColDef } from "@mui/x-data-grid-pro";
|
||||
import { List } from "@/app/_components/List";
|
||||
|
||||
export default function Page() {
|
||||
const columns: GridColDef[] = [
|
||||
{
|
||||
field: "id",
|
||||
headerName: "ID",
|
||||
flex: 1,
|
||||
},
|
||||
{
|
||||
field: "phoneNumber",
|
||||
headerName: "Phone Number",
|
||||
flex: 2,
|
||||
},
|
||||
{
|
||||
field: "createdAt",
|
||||
headerName: "Created At",
|
||||
valueGetter: (params: any) =>
|
||||
new Date(params.row?.createdAt).toLocaleString(),
|
||||
flex: 1,
|
||||
},
|
||||
{
|
||||
field: "updatedAt",
|
||||
headerName: "Updated At",
|
||||
valueGetter: (params: any) =>
|
||||
new Date(params.row?.updatedAt).toLocaleString(),
|
||||
flex: 1,
|
||||
},
|
||||
];
|
||||
|
||||
const rows = [
|
||||
{
|
||||
id: 10,
|
||||
phoneNumber: "1234567890",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<List title="Voice bots" entity="users" rows={rows} columns={columns} />
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue