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"
|
placeholder="Search users"
|
||||||
value={usernameFilter}
|
value={usernameFilter}
|
||||||
onChange={handleUsernameChange}
|
onChange={handleUsernameChange}
|
||||||
className="input input-sm w-40"
|
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user