side bar update

This commit was merged in pull request #37.
This commit is contained in:
victorAnumudu
2024-07-11 17:31:34 +01:00
parent 2eb12129bb
commit 450ae649c3
34 changed files with 1738 additions and 4 deletions
@@ -0,0 +1,25 @@
import clsx from 'clsx'
import {FC} from 'react'
import {Row} from 'react-table'
import {User} from '../../../core/_models'
type Props = {
row: Row<User>
}
const CustomRow: FC<Props> = ({row}) => (
<tr {...row.getRowProps()}>
{row.cells.map((cell) => {
return (
<td
{...cell.getCellProps()}
className={clsx({'text-end min-w-100px': cell.column.id === 'actions'})}
>
{cell.render('Cell')}
</td>
)
})}
</tr>
)
export {CustomRow}