Merged in feat/SW-2847-table (pull request #2665)
fix(SW-2847): move ScrollWrapper to design system and Table component * fix(SW-2847): move ScrollWrapper to design system and Table component Approved-by: Erik Tiekstra
This commit is contained in:
@@ -6,6 +6,7 @@ import TR from './TR'
|
||||
import { tableVariants } from './variants'
|
||||
|
||||
import type { TableProps } from './table'
|
||||
import ScrollWrapper from './ScrollWrapper'
|
||||
|
||||
function Table({
|
||||
className,
|
||||
@@ -26,9 +27,11 @@ function Table({
|
||||
})
|
||||
|
||||
return (
|
||||
<table className={classNames} style={{ width }} {...props}>
|
||||
{children}
|
||||
</table>
|
||||
<ScrollWrapper>
|
||||
<table className={classNames} style={{ width }} {...props}>
|
||||
{children}
|
||||
</table>
|
||||
</ScrollWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user