19
19
*
20
20
*/
21
21
22
- import { default as defaultTheme , default as theme } from '@/components/theme' ;
22
+ import { default as theme } from '@/components/theme' ;
23
23
import { Error as ErrorIcon , Info , Warning } from '@/components/theme/icons' ;
24
24
import Dismiss from '@/components/theme/icons/dismiss' ;
25
25
import { css } from '@emotion/react' ;
@@ -33,22 +33,22 @@ type Props = {
33
33
34
34
const AlertVariants = {
35
35
critical : {
36
- backgroundColor : defaultTheme . colors . error_2 ,
36
+ backgroundColor : theme . colors . error_2 ,
37
37
icon : < ErrorIcon height = { 26 } width = { 26 } /> ,
38
- textColor : defaultTheme . colors . black ,
39
- outline : defaultTheme . colors . error_dark ,
38
+ textColor : theme . colors . black ,
39
+ outline : theme . colors . error_dark ,
40
40
} ,
41
41
warning : {
42
42
backgroundColor : theme . colors . warning_light ,
43
43
icon : < Warning height = { 26 } width = { 26 } /> ,
44
- textColor : defaultTheme . colors . black ,
45
- outline : defaultTheme . colors . warning_dark ,
44
+ textColor : theme . colors . black ,
45
+ outline : theme . colors . warning_dark ,
46
46
} ,
47
47
info : {
48
- backgroundColor : defaultTheme . colors . secondary_1 ,
49
- icon : < Info fill = { defaultTheme . colors . secondary_accessible } /> ,
50
- textColor : defaultTheme . colors . black ,
51
- outline : defaultTheme . colors . secondary_dark ,
48
+ backgroundColor : theme . colors . secondary_1 ,
49
+ icon : < Info fill = { theme . colors . secondary_accessible } /> ,
50
+ textColor : theme . colors . black ,
51
+ outline : theme . colors . secondary_dark ,
52
52
} ,
53
53
} ;
54
54
@@ -84,7 +84,7 @@ export const SystemAlert: React.FC<Props> = ({ alert, onClose }) => {
84
84
css = { css `
85
85
color : ${ textColor } ;
86
86
margin-top : ${ alert . message ? '0px' : '6px' } ;
87
- ${ defaultTheme . typography . heading } ;
87
+ ${ theme . typography . heading } ;
88
88
` }
89
89
>
90
90
{ alert . title }
@@ -94,7 +94,7 @@ export const SystemAlert: React.FC<Props> = ({ alert, onClose }) => {
94
94
css = { css `
95
95
color : ${ textColor } ;
96
96
margin- botto m: 8px ;
97
- ${ defaultTheme . typography . regular } ;
97
+ ${ theme . typography . regular } ;
98
98
` }
99
99
dangerouslySetInnerHTML = { createMarkup ( alert . message ) }
100
100
/>
@@ -108,7 +108,7 @@ export const SystemAlert: React.FC<Props> = ({ alert, onClose }) => {
108
108
` }
109
109
onClick = { onClose }
110
110
>
111
- < Dismiss height = { 15 } width = { 15 } fill = { defaultTheme . colors . black } />
111
+ < Dismiss height = { 15 } width = { 15 } fill = { theme . colors . black } />
112
112
</ div >
113
113
) }
114
114
</ div >
0 commit comments