File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export const TableHeaderColumn: FC<TableHeaderColumnProps> = (props) => {
172172 ) ;
173173
174174 return (
175- < th { ...pprops } className = { oClassNames } scope = 'col' style = { style } >
175+ < th { ...pprops } className = { oClassNames } style = { style } >
176176 { sortable ? (
177177 < a
178178 onClick = { ( e ) => {
@@ -223,7 +223,6 @@ export const TableRowColumn: FC<TableRowColumnProps> = (props) => {
223223 className : oClassNames ,
224224 width,
225225 children,
226- scope,
227226 ...pprops
228227 } = props ;
229228 const style : CSSProperties = { } ;
@@ -239,15 +238,11 @@ export const TableRowColumn: FC<TableRowColumnProps> = (props) => {
239238 children
240239 ) ;
241240
242- const CellComponent = scope === 'row' ? 'th' : 'td' ;
243- const cellProps = {
244- style,
245- className : oClassNames ,
246- ...pprops ,
247- ...( scope === 'row' ? { scope : 'row' } : { } ) ,
248- } ;
249-
250- return < CellComponent { ...cellProps } > { cellContent } </ CellComponent > ;
241+ return (
242+ < td style = { style } className = { oClassNames } { ...pprops } >
243+ { cellContent }
244+ </ td >
245+ ) ;
251246} ;
252247
253248/**
You can’t perform that action at this time.
0 commit comments