Skip to content

Commit d99651c

Browse files
authored
Merge pull request #495 from AppQuality/fix-layout-wrapper
fix(layout): fix layout wrapper isNotBoxed missing props
2 parents 6994ea9 + 8f2be64 commit d99651c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/components/LayoutWrapper.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import styled from 'styled-components';
2-
import { theme as globalTheme } from 'src/app/theme';
32

43
const Container = styled.div<{
54
isNotBoxed?: boolean;
@@ -8,8 +7,8 @@ const Container = styled.div<{
87
box-sizing: border-box;
98
padding: 0 ${({ theme }) => theme.space.xxl};
109
margin: 0 auto;
11-
${({ isNotBoxed }) =>
12-
isNotBoxed && `max-width: ${globalTheme.breakpoints.xxl};`}
10+
max-width: ${({ theme, isNotBoxed }) =>
11+
isNotBoxed ? '100%' : theme.breakpoints.xxl};
1312
1413
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
1514
padding: 0 ${({ theme }) => theme.space.md};
@@ -25,9 +24,10 @@ export const LayoutWrapper = (
2524
<Container
2625
className={
2726
className
28-
? `${className} layout-wrapper ${isNotBoxed ? 'not-boxed' : 'boxed'}`
27+
? `layout-wrapper ${isNotBoxed ? 'not-boxed' : 'boxed'} ${className}`
2928
: `layout-wrapper ${isNotBoxed ? 'not-boxed' : 'boxed'}`
3029
}
30+
isNotBoxed={isNotBoxed}
3131
{...rest}
3232
/>
3333
);

0 commit comments

Comments
 (0)