@@ -3,7 +3,7 @@ import { Page } from '@/components/layout/Page'
33import titleWrapper from '@/utils/titleWrapper'
44import { useTasksTranslation } from '@/i18n/useTasksTranslation'
55import { ContentPanel } from '@/components/layout/ContentPanel'
6- import { Avatar , CheckboxUncontrolled , IconButton , SolidButton , Table } from '@helpwave/hightide'
6+ import { Avatar , CheckboxUncontrolled , FillerRowElement , IconButton , SolidButton , Table } from '@helpwave/hightide'
77import { useMemo } from 'react'
88import type { ColumnDef } from '@tanstack/table-core'
99import {
@@ -65,6 +65,7 @@ const TasksPage: NextPage = () => {
6565 {
6666 id : 'done' ,
6767 header : translation ( 'status' ) ,
68+ accessorKey : 'done' ,
6869 cell : ( { row } ) => (
6970 < CheckboxUncontrolled
7071 checked = { row . original . done }
@@ -78,9 +79,9 @@ const TasksPage: NextPage = () => {
7879 className = { clsx ( 'rounded-full' ) }
7980 />
8081 ) ,
81- minSize : 75 ,
82- size : 75 ,
83- maxSize : 75 ,
82+ minSize : 120 ,
83+ size : 120 ,
84+ maxSize : 120 ,
8485 enableResizing : false ,
8586 } ,
8687 {
@@ -214,6 +215,16 @@ const TasksPage: NextPage = () => {
214215 className = "w-full h-full"
215216 data = { tasks }
216217 columns = { columns }
218+ fillerRow = { ( ) => (
219+ < FillerRowElement className = "min-h-17.25" />
220+ ) }
221+ initialState = { {
222+ sorting : [
223+ { id : 'done' , desc : true } ,
224+ { id : 'updateDate' , desc : true } ,
225+ ]
226+ } }
227+ enableMultiSort = { true }
217228 />
218229 </ ContentPanel >
219230 </ Page >
0 commit comments