Skip to content

Commit f74973a

Browse files
committed
fix: use provided data-css in route wrapper if defined
1 parent 309cce1 commit f74973a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/components/routes/utils/wrapper.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ type WrapperProps = BoxProps & {
4141

4242
const Wrapper: React.FC<WrapperProps> = (props) => {
4343
// eslint-disable-next-line @typescript-eslint/no-unused-vars
44-
const { children, variant, color, showFilter = false, ...rest } = props
44+
const { children, variant, color, showFilter = false, 'data-css': dataCss, ...rest } = props
4545

4646
const Component: ComponentType<PropsWithChildren<any>> = showFilter
4747
? StyledWrapperWithFilter
4848
: StyledWrapper
4949

5050
return (
51-
<Component {...rest} variant="transparent" mx="auto" data-css="styled-wrapper">
51+
<Component {...rest} variant="transparent" mx="auto" data-css={dataCss || 'styled-wrapper'}>
5252
{children}
5353
</Component>
5454
)

0 commit comments

Comments
 (0)