fix column search double at manage groups
This commit is contained in:
@ -28,7 +28,6 @@ const ListToolBar = ({ createGroup, onReload, isReloading }: ListToolBarProps) =
|
||||
placeholder="Search users"
|
||||
value={usernameFilter}
|
||||
onChange={handleUsernameChange}
|
||||
className="input input-sm w-40"
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@ -9,6 +9,7 @@ import {
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import { ColumnDef } from '@tanstack/react-table';
|
||||
import { ArrowUpDown, MoreHorizontal } from 'lucide-react';
|
||||
import moment from 'moment';
|
||||
|
||||
export type Members = {
|
||||
// id: number;
|
||||
@ -117,7 +118,7 @@ export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<Members
|
||||
</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',
|
||||
|
||||
Reference in New Issue
Block a user