File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import styled from 'styled-components' ;
2- import { theme as globalTheme } from 'src/app/theme' ;
32
43const 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 ) ;
You can’t perform that action at this time.
0 commit comments