Skip to content

Commit ddee18c

Browse files
wonyoungtannerlinsley
authored andcommitted
Update README.md (TanStack#213)
* Update README.md Bug fix in custom props example * Update README.md Bug fix in custom column props example
1 parent 1757b4d commit ddee18c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ You can use these callbacks for dynamic styling as well!
518518
getTrProps={(state, rowInfo, column) => {
519519
return {
520520
style: {
521-
background: rowInfo.age > 20 ? 'green' : 'red'
521+
background: rowInfo.row.age > 20 ? 'green' : 'red'
522522
}
523523
}
524524
}}
@@ -543,7 +543,7 @@ const columns = [{
543543
getProps: (state, rowInfo, column) => {
544544
return {
545545
style: {
546-
background: rowInfo.name === 'Santa Clause' ? 'red' : null
546+
background: rowInfo.row.name === 'Santa Clause' ? 'red' : null
547547
}
548548
}
549549
}

0 commit comments

Comments
 (0)