@@ -4,7 +4,7 @@ import Icon from '../Icon/Icon';
44import { Theme } from '../../design-tokens/theme' ;
55
66export const Wrapper = styled ( 'div' ) < { theme ?: Theme } > ( ( { theme } ) => ( {
7- background : theme ?. palette . type === 'dark ' ? theme ?. palette . primary . main : theme ?. palette . snow ,
7+ background : theme ?. palette . type === 'light ' ? theme ?. palette . snow : theme ?. palette . cyanBlue ,
88 borderTop : `1px solid ${ theme ?. palette . greyGainsboro } ` ,
99 color : theme ?. palette . type === 'dark' ? theme ?. palette . white : theme ?. palette . nobel01 ,
1010 fontSize : '14px' ,
@@ -16,21 +16,21 @@ export const Inner = styled('div')<{ theme?: Theme }>(({ theme }) => ({
1616 alignItems : 'center' ,
1717 justifyContent : 'flex-end' ,
1818 width : '100%' ,
19- [ `@media (min-width: ${ theme && theme . breakPoints . medium } px)` ] : {
19+ [ `@media (min-width: ${ theme ? .breakPoints . medium } px)` ] : {
2020 minWidth : 400 ,
2121 maxWidth : 800 ,
2222 margin : 'auto' ,
2323 justifyContent : 'space-between' ,
2424 } ,
25- [ `@media (min-width: ${ theme && theme . breakPoints . large } px)` ] : {
25+ [ `@media (min-width: ${ theme ? .breakPoints . large } px)` ] : {
2626 maxWidth : 1240 ,
2727 } ,
2828} ) ) ;
2929
3030export const Left = styled ( 'div' ) < { theme ?: Theme } > ( ( { theme } ) => ( {
3131 alignItems : 'center' ,
3232 display : 'none' ,
33- [ `@media (min-width: ${ theme && theme . breakPoints . medium } px)` ] : {
33+ [ `@media (min-width: ${ theme ? .breakPoints . medium } px)` ] : {
3434 display : 'flex' ,
3535 } ,
3636} ) ) ;
@@ -43,9 +43,9 @@ export const Earth = styled(Icon)({
4343 padding : '0 10px' ,
4444} ) ;
4545
46- export const Flags = styled ( 'span' ) < { theme ?: Theme } > ( props => ( {
46+ export const Flags = styled ( 'span' ) < { theme ?: Theme } > ( ( { theme } ) => ( {
4747 position : 'absolute' ,
48- background : props . theme && props . theme . palette . greyAthens ,
48+ background : theme ? .palette . greyAthens ,
4949 padding : '1px 4px' ,
5050 borderRadius : 3 ,
5151 height : 20 ,
@@ -60,7 +60,7 @@ export const Flags = styled('span')<{ theme?: Theme }>(props => ({
6060 left : - 4 ,
6161 marginLeft : - 5 ,
6262 border : '5px solid' ,
63- borderColor : `${ props . theme && props . theme . palette . greyAthens } transparent transparent transparent` ,
63+ borderColor : `${ theme ? .palette . greyAthens } transparent transparent transparent` ,
6464 transform : 'rotate(90deg)' ,
6565 } ,
6666} ) ) ;
@@ -75,8 +75,8 @@ export const ToolTip = styled('span')({
7575 } ,
7676} ) ;
7777
78- export const Love = styled ( 'span' ) < { theme ?: Theme } > ( props => ( {
79- color : props . theme && props . theme . palette . love ,
78+ export const Love = styled ( 'span' ) < { theme ?: Theme } > ( ( { theme } ) => ( {
79+ color : theme ? .palette . love ,
8080 padding : '0 5px' ,
8181} ) ) ;
8282
0 commit comments