1- import  React  from  " react" ; 
2- import  CardMenu  from  " components/card/CardMenu" ; 
3- import  Checkbox  from  " components/checkbox" ; 
4- import  Card  from  " components/card" ; 
1+ import  React  from  ' react' ; 
2+ import  CardMenu  from  ' components/card/CardMenu' ; 
3+ import  Checkbox  from  ' components/checkbox' ; 
4+ import  Card  from  ' components/card' ; 
55
66import  { 
77  createColumnHelper , 
@@ -10,7 +10,7 @@ import {
1010  getSortedRowModel , 
1111  SortingState , 
1212  useReactTable , 
13- }  from  " @tanstack/react-table" ; 
13+ }  from  ' @tanstack/react-table' ; 
1414
1515type  RowObj  =  { 
1616  name : [ string ,  boolean ] ; 
@@ -24,16 +24,16 @@ function CheckTable(props: { tableData: any }) {
2424  const  [ sorting ,  setSorting ]  =  React . useState < SortingState > ( [ ] ) ; 
2525  let  defaultData  =  tableData ; 
2626  const  columns  =  [ 
27-     columnHelper . accessor ( " name" ,  { 
28-       id : " name" , 
27+     columnHelper . accessor ( ' name' ,  { 
28+       id : ' name' , 
2929      header : ( )  =>  ( 
3030        < p  className = "text-sm font-bold text-gray-600 dark:text-white" > NAME</ p > 
3131      ) , 
3232      cell : ( info : any )  =>  ( 
3333        < div  className = "flex items-center" > 
3434          < Checkbox 
3535            defaultChecked = { info . getValue ( ) [ 1 ] } 
36-             colorScheme = "brandScheme "
36+             color = "indigo "
3737            me = "10px" 
3838          /> 
3939          < p  className = "ml-3 text-sm font-bold text-navy-700 dark:text-white" > 
@@ -42,8 +42,8 @@ function CheckTable(props: { tableData: any }) {
4242        </ div > 
4343      ) , 
4444    } ) , 
45-     columnHelper . accessor ( " progress" ,  { 
46-       id : " progress" , 
45+     columnHelper . accessor ( ' progress' ,  { 
46+       id : ' progress' , 
4747      header : ( )  =>  ( 
4848        < p  className = "text-sm font-bold text-gray-600 dark:text-white" > 
4949          PROGRESS
@@ -55,8 +55,8 @@ function CheckTable(props: { tableData: any }) {
5555        </ p > 
5656      ) , 
5757    } ) , 
58-     columnHelper . accessor ( " quantity" ,  { 
59-       id : " quantity" , 
58+     columnHelper . accessor ( ' quantity' ,  { 
59+       id : ' quantity' , 
6060      header : ( )  =>  ( 
6161        < p  className = "text-sm font-bold text-gray-600 dark:text-white" > 
6262          QUANTITY
@@ -68,8 +68,8 @@ function CheckTable(props: { tableData: any }) {
6868        </ p > 
6969      ) , 
7070    } ) , 
71-     columnHelper . accessor ( " date" ,  { 
72-       id : " date" , 
71+     columnHelper . accessor ( ' date' ,  { 
72+       id : ' date' , 
7373      header : ( )  =>  ( 
7474        < p  className = "text-sm font-bold text-gray-600 dark:text-white" > DATE</ p > 
7575      ) , 
@@ -93,7 +93,7 @@ function CheckTable(props: { tableData: any }) {
9393    debugTable : true , 
9494  } ) ; 
9595  return  ( 
96-     < Card  extra = { " w-full h-full sm:overflow-auto px-6" } > 
96+     < Card  extra = { ' w-full h-full sm:overflow-auto px-6' } > 
9797      < header  className = "relative flex items-center justify-between pt-4" > 
9898        < div  className = "text-xl font-bold text-navy-700 dark:text-white" > 
9999          Check Table
@@ -118,11 +118,11 @@ function CheckTable(props: { tableData: any }) {
118118                      < div  className = "items-center justify-between text-xs text-gray-200" > 
119119                        { flexRender ( 
120120                          header . column . columnDef . header , 
121-                           header . getContext ( ) 
121+                           header . getContext ( ) , 
122122                        ) } 
123123                        { { 
124-                           asc : "" , 
125-                           desc : "" , 
124+                           asc : '' , 
125+                           desc : '' , 
126126                        } [ header . column . getIsSorted ( )  as  string ]  ??  null } 
127127                      </ div > 
128128                    </ th > 
@@ -146,7 +146,7 @@ function CheckTable(props: { tableData: any }) {
146146                        > 
147147                          { flexRender ( 
148148                            cell . column . columnDef . cell , 
149-                             cell . getContext ( ) 
149+                             cell . getContext ( ) , 
150150                          ) } 
151151                        </ td > 
152152                      ) ; 
0 commit comments