@@ -21,13 +21,13 @@ const Container = styled.div`
2121
2222 border-left: 2px solid transparent;
2323 border-color: ${ props => {
24- if ( props . type === 'error' ) return theme . red . darken ( 0.2 ) ( ) ;
25- if ( props . type === 'warning' ) return theme . primary . darken ( 0.2 ) ;
26- if ( props . type === 'success' ) return theme . green ( ) ;
27- return theme . secondary ;
28- } }
24+ if ( props . type === 'error' ) return theme . red . darken ( 0.2 ) ( ) ;
25+ if ( props . type === 'warning' ) return theme . primary . darken ( 0.2 ) ;
26+ if ( props . type === 'success' ) return theme . green ( ) ;
27+ return theme . secondary ;
28+ } }
2929
30- background-color: ${ ( ) => theme . background2 . darken ( 0.2 ) ( ) } ;
30+ background-color: ${ theme . background2 . darken ( 0.2 ) ( ) } ;
3131` ;
3232
3333const Content = styled . div `
@@ -67,19 +67,19 @@ const Button = styled.div`
6767 padding: 0.5rem;
6868 background-color:
6969 ${ props => {
70- if ( props . type === 'error' ) return theme . redBackground . lighten ( 0.2 ) ;
71- if ( props . type === 'warning' ) return theme . primary . darken ( 0.5 ) ;
72- return theme . secondary . darken ( 0.1 ) ;
73- } } ;
70+ if ( props . type === 'error' ) return theme . redBackground . lighten ( 0.2 ) ;
71+ if ( props . type === 'warning' ) return theme . primary . darken ( 0.5 ) ;
72+ return theme . secondary . darken ( 0.1 ) ;
73+ } } ;
7474 font-weight: 500;
7575
7676 &:hover {
7777 background-color:
7878 ${ props => {
79- if ( props . type === 'error' ) return theme . redBackground . lighten ( 0.1 ) ;
80- if ( props . type === 'warning' ) return theme . primary . darken ( 0.6 ) ;
81- return theme . secondary . darken ( 0.2 ) ;
82- } } ;
79+ if ( props . type === 'error' ) return theme . redBackground . lighten ( 0.1 ) ;
80+ if ( props . type === 'warning' ) return theme . primary . darken ( 0.6 ) ;
81+ return theme . secondary . darken ( 0.2 ) ;
82+ } } ;
8383 }
8484` ;
8585
0 commit comments