mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Remove unnecessary flex layout inline styles
This commit is contained in:
parent
4e3fa751dc
commit
ab3252bc32
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
node_modules/
|
||||
lib/
|
||||
dist/
|
||||
es/
|
||||
docs/build
|
||||
react-table.js
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -37,8 +37,8 @@
|
||||
],
|
||||
"peerDependencies": {
|
||||
"prop-types": "^15.5.0",
|
||||
"react": "^16.7.0-alpha.0 || ^16.8.x",
|
||||
"react-dom": "^16.7.0-alpha.0 || ^16.8.x"
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-class-properties": "^7.2.1",
|
||||
|
||||
@ -77,8 +77,8 @@ export const useFlexLayout = props => {
|
||||
getCellProps.push(cell => {
|
||||
return {
|
||||
style: {
|
||||
display: 'block',
|
||||
boxSizing: 'border-box',
|
||||
// display: 'block',
|
||||
// boxSizing: 'border-box',
|
||||
...getStylesForColumn(
|
||||
cell.column,
|
||||
columnMeasurements,
|
||||
|
||||
@ -149,7 +149,7 @@ export const useTable = (props, ...plugins) => {
|
||||
|
||||
// need to apply any row specific hooks (useExpanded requires this)
|
||||
applyHooks(api.hooks.row, row, api)
|
||||
|
||||
|
||||
row.cells = row.cells.filter(cell => cell.column.visible)
|
||||
|
||||
row.cells.forEach(cell => {
|
||||
@ -170,7 +170,6 @@ export const useTable = (props, ...plugins) => {
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
cell.render = (type, userProps = {}) => {
|
||||
if (!type) {
|
||||
throw new Error(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user