feat(MED-97): fix missing breadcrumbs, consistent layouts
This commit is contained in:
@@ -170,6 +170,7 @@ async function TeamAccountPage(props: {
|
||||
<>
|
||||
<PageHeader
|
||||
className="border-b"
|
||||
title={'Account'}
|
||||
description={
|
||||
<AppBreadcrumbs
|
||||
values={{
|
||||
|
||||
@@ -18,8 +18,8 @@ export async function AdminDashboard() {
|
||||
' xl:grid-cols-4'
|
||||
}
|
||||
>
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<Card className="flex flex-col">
|
||||
<CardHeader className="flex-1">
|
||||
<CardTitle>Users</CardTitle>
|
||||
|
||||
<CardDescription>
|
||||
@@ -34,8 +34,8 @@ export async function AdminDashboard() {
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<Card className="flex flex-col">
|
||||
<CardHeader className="flex-1">
|
||||
<CardTitle>Company Accounts</CardTitle>
|
||||
|
||||
<CardDescription>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
||||
import { Database } from '@kit/supabase/database';
|
||||
import { DataTable } from '@kit/ui/enhanced-data-table';
|
||||
import { ProfileAvatar } from '@kit/ui/profile-avatar';
|
||||
import { formatDateAndTime } from '@kit/shared/utils';
|
||||
|
||||
type Memberships =
|
||||
Database['medreport']['Functions']['get_account_members']['Returns'][number];
|
||||
@@ -17,10 +18,6 @@ export function AdminMembersTable(props: { members: Memberships[] }) {
|
||||
|
||||
function getColumns(): ColumnDef<Memberships>[] {
|
||||
return [
|
||||
{
|
||||
header: 'User ID',
|
||||
accessorKey: 'user_id',
|
||||
},
|
||||
{
|
||||
header: 'Name',
|
||||
cell: ({ row }) => {
|
||||
@@ -58,10 +55,16 @@ function getColumns(): ColumnDef<Memberships>[] {
|
||||
{
|
||||
header: 'Created At',
|
||||
accessorKey: 'created_at',
|
||||
cell: ({ row }) => {
|
||||
return formatDateAndTime(row.original.created_at);
|
||||
},
|
||||
},
|
||||
{
|
||||
header: 'Updated At',
|
||||
accessorKey: 'updated_at',
|
||||
cell: ({ row }) => {
|
||||
return formatDateAndTime(row.original.updated_at);
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user