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' ;
5
5
6
6
import {
7
7
createColumnHelper ,
@@ -10,7 +10,7 @@ import {
10
10
getSortedRowModel ,
11
11
SortingState ,
12
12
useReactTable ,
13
- } from " @tanstack/react-table" ;
13
+ } from ' @tanstack/react-table' ;
14
14
15
15
type RowObj = {
16
16
name : [ string , boolean ] ;
@@ -24,16 +24,16 @@ function CheckTable(props: { tableData: any }) {
24
24
const [ sorting , setSorting ] = React . useState < SortingState > ( [ ] ) ;
25
25
let defaultData = tableData ;
26
26
const columns = [
27
- columnHelper . accessor ( " name" , {
28
- id : " name" ,
27
+ columnHelper . accessor ( ' name' , {
28
+ id : ' name' ,
29
29
header : ( ) => (
30
30
< p className = "text-sm font-bold text-gray-600 dark:text-white" > NAME</ p >
31
31
) ,
32
32
cell : ( info : any ) => (
33
33
< div className = "flex items-center" >
34
34
< Checkbox
35
35
defaultChecked = { info . getValue ( ) [ 1 ] }
36
- colorScheme = "brandScheme "
36
+ color = "indigo "
37
37
me = "10px"
38
38
/>
39
39
< p className = "ml-3 text-sm font-bold text-navy-700 dark:text-white" >
@@ -42,8 +42,8 @@ function CheckTable(props: { tableData: any }) {
42
42
</ div >
43
43
) ,
44
44
} ) ,
45
- columnHelper . accessor ( " progress" , {
46
- id : " progress" ,
45
+ columnHelper . accessor ( ' progress' , {
46
+ id : ' progress' ,
47
47
header : ( ) => (
48
48
< p className = "text-sm font-bold text-gray-600 dark:text-white" >
49
49
PROGRESS
@@ -55,8 +55,8 @@ function CheckTable(props: { tableData: any }) {
55
55
</ p >
56
56
) ,
57
57
} ) ,
58
- columnHelper . accessor ( " quantity" , {
59
- id : " quantity" ,
58
+ columnHelper . accessor ( ' quantity' , {
59
+ id : ' quantity' ,
60
60
header : ( ) => (
61
61
< p className = "text-sm font-bold text-gray-600 dark:text-white" >
62
62
QUANTITY
@@ -68,8 +68,8 @@ function CheckTable(props: { tableData: any }) {
68
68
</ p >
69
69
) ,
70
70
} ) ,
71
- columnHelper . accessor ( " date" , {
72
- id : " date" ,
71
+ columnHelper . accessor ( ' date' , {
72
+ id : ' date' ,
73
73
header : ( ) => (
74
74
< p className = "text-sm font-bold text-gray-600 dark:text-white" > DATE</ p >
75
75
) ,
@@ -93,7 +93,7 @@ function CheckTable(props: { tableData: any }) {
93
93
debugTable : true ,
94
94
} ) ;
95
95
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' } >
97
97
< header className = "relative flex items-center justify-between pt-4" >
98
98
< div className = "text-xl font-bold text-navy-700 dark:text-white" >
99
99
Check Table
@@ -118,11 +118,11 @@ function CheckTable(props: { tableData: any }) {
118
118
< div className = "items-center justify-between text-xs text-gray-200" >
119
119
{ flexRender (
120
120
header . column . columnDef . header ,
121
- header . getContext ( )
121
+ header . getContext ( ) ,
122
122
) }
123
123
{ {
124
- asc : "" ,
125
- desc : "" ,
124
+ asc : '' ,
125
+ desc : '' ,
126
126
} [ header . column . getIsSorted ( ) as string ] ?? null }
127
127
</ div >
128
128
</ th >
@@ -146,7 +146,7 @@ function CheckTable(props: { tableData: any }) {
146
146
>
147
147
{ flexRender (
148
148
cell . column . columnDef . cell ,
149
- cell . getContext ( )
149
+ cell . getContext ( ) ,
150
150
) }
151
151
</ td >
152
152
) ;
0 commit comments