File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-fluid-table" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" : " A React table inspired by @tanstack/react-virtual" ,
5
5
"author" : " Mckervin Ceme <mckervinc@live.com>" ,
6
6
"license" : " MIT" ,
93
93
},
94
94
"dependencies" : {
95
95
"@tanstack/react-virtual" : " ^3.11.1" ,
96
- "react-resize-detector" : " ^11 .0.1"
96
+ "react-resize-detector" : " ^12 .0.1"
97
97
},
98
98
"volta" : {
99
99
"node" : " 18.18.0" ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const Table = forwardRef(function <T>(
67
67
maxTableHeight = { maxHeight }
68
68
headerHeight = { headerHeight }
69
69
footerHeight = { footerHeight }
70
- hasFooter = { ! ! footerComponent || ! ! columns . find ( c => ! ! c . footer ) }
70
+ hasFooter = { ! ! footerComponent || columns . some ( c => ! ! c . footer ) }
71
71
>
72
72
{ ( { height, width } ) => {
73
73
return (
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function Footer<T>({
53
53
const ref = useRef < HTMLDivElement > ( null ) ;
54
54
55
55
// constants
56
- const hasFooter = ! ! Component || ! ! columns . find ( c => ! ! c . footer ) ;
56
+ const hasFooter = ! ! Component || columns . some ( c => ! ! c . footer ) ;
57
57
const style : React . CSSProperties = {
58
58
minWidth : sticky ? undefined : pixelWidths . reduce ( ( pv , c ) => pv + c , 0 ) ,
59
59
...footerStyle
@@ -109,7 +109,7 @@ function Footer<T>({
109
109
110
110
// render
111
111
if ( ! Component ) {
112
- const hasFooter = ! ! columns . find ( c => ! ! c . footer ) ;
112
+ const hasFooter = columns . some ( c => ! ! c . footer ) ;
113
113
return (
114
114
< div
115
115
ref = { ref }
Original file line number Diff line number Diff line change @@ -4004,10 +4004,10 @@ react-is@^16.13.1:
4004
4004
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
4005
4005
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
4006
4006
4007
- react-resize-detector@^11 .0.1 :
4008
- version "11 .0.1"
4009
- resolved "https://registry.yarnpkg.com/react-resize-detector/-/react-resize-detector-11 .0.1.tgz#70684958ae82bc0deb240d133a1ee440e0624532 "
4010
- integrity sha512-1Tdgu6Ou3vI3RQD+o2/kTvDibb4NRe7Oh83hIjNNEXb6WKKCQT99VQlh3Xlbdq2HtkUoFEMrgMMKkYI83YbD7Q ==
4007
+ react-resize-detector@^12 .0.1 :
4008
+ version "12 .0.1"
4009
+ resolved "https://registry.yarnpkg.com/react-resize-detector/-/react-resize-detector-12 .0.1.tgz#7d7eba49a538c32ba45f121b6dc9f28bf1dc4077 "
4010
+ integrity sha512-qOzOEn8AC4i60L29sPeUtw3RRsdDYZAGOBDwg3vzUQ34fpP+JOBlf1x0Q8Wv85IPQ3nBNL4NNr12e2caiIK1Lg ==
4011
4011
dependencies :
4012
4012
lodash "^4.17.21"
4013
4013
You can’t perform that action at this time.
0 commit comments