1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
- import WarningOutlined from "@mui/icons-material/WarningOutlined" ;
3
2
import Button from "@mui/material/Button" ;
4
3
import Drawer from "@mui/material/Drawer" ;
5
4
import IconButton from "@mui/material/IconButton" ;
6
5
import { visuallyHidden } from "@mui/utils" ;
7
6
import { JobError } from "api/queries/templates" ;
8
7
import type { TemplateVersion } from "api/typesGenerated" ;
9
8
import { Loader } from "components/Loader/Loader" ;
10
- import { X as XIcon } from "lucide-react" ;
9
+ import { TriangleAlertIcon , XIcon } from "lucide-react" ;
11
10
import { AlertVariant } from "modules/provisioners/ProvisionerAlert" ;
12
11
import { ProvisionerStatusAlert } from "modules/provisioners/ProvisionerStatusAlert" ;
13
12
import { useWatchVersionLogs } from "modules/templates/useWatchVersionLogs" ;
@@ -66,7 +65,7 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
66
65
< header css = { styles . header } >
67
66
< h3 css = { styles . title } > Creating template...</ h3 >
68
67
< IconButton size = "small" onClick = { drawerProps . onClose } >
69
- < XIcon css = { styles . closeIcon } />
68
+ < XIcon className = "size-icon-sm" />
70
69
< span style = { visuallyHidden } > Close build logs</ span >
71
70
</ IconButton >
72
71
</ header >
@@ -113,7 +112,7 @@ const MissingVariablesBanner: FC<MissingVariablesBannerProps> = ({
113
112
return (
114
113
< div css = { bannerStyles . root } >
115
114
< div css = { bannerStyles . content } >
116
- < WarningOutlined css = { bannerStyles . icon } />
115
+ < TriangleAlertIcon className = "size-icon-lg" css = { bannerStyles . icon } />
117
116
< h4 css = { bannerStyles . title } > Missing variables</ h4 >
118
117
< p css = { bannerStyles . description } >
119
118
During the build process, we identified some missing variables. Rest
@@ -152,9 +151,6 @@ const styles = {
152
151
fontWeight : 500 ,
153
152
fontSize : 16 ,
154
153
} ,
155
- closeIcon : {
156
- fontSize : 20 ,
157
- } ,
158
154
logs : ( theme ) => ( {
159
155
flex : 1 ,
160
156
overflow : "auto" ,
@@ -177,7 +173,6 @@ const bannerStyles = {
177
173
maxWidth : 360 ,
178
174
} ,
179
175
icon : ( theme ) => ( {
180
- fontSize : 32 ,
181
176
color : theme . roles . warning . fill . outline ,
182
177
} ) ,
183
178
title : {
0 commit comments