fix column search double at manage groups

This commit is contained in:
Raja Oktafrianto
2025-05-02 14:00:13 +07:00
parent e1ac959aff
commit a47879e875
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,6 @@ const ListToolBar = ({ createGroup, onReload, isReloading }: ListToolBarProps) =
placeholder="Search users" placeholder="Search users"
value={usernameFilter} value={usernameFilter}
onChange={handleUsernameChange} onChange={handleUsernameChange}
className="input input-sm w-40"
/> />
</label> </label>
</div> </div>

View File

@ -9,6 +9,7 @@ import {
} from '@/components/ui/dropdown-menu'; } from '@/components/ui/dropdown-menu';
import { ColumnDef } from '@tanstack/react-table'; import { ColumnDef } from '@tanstack/react-table';
import { ArrowUpDown, MoreHorizontal } from 'lucide-react'; import { ArrowUpDown, MoreHorizontal } from 'lucide-react';
import moment from 'moment';
export type Members = { export type Members = {
// id: number; // id: number;
@ -117,7 +118,7 @@ export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<Members
</Button> </Button>
); );
}, },
cell: ({ row }) => new Date(row.original.created_at).toLocaleDateString() cell: ({ row }) => moment(row.original.created_at).format('YYYY-MM-DD HH:mm:ss')
}, },
{ {
id: 'actions', id: 'actions',