File tree 3 files changed +9
-6
lines changed
TemplateVersionEditorPage
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- import { Alert , AlertColor , AlertTitle } from "@mui/material" ;
1
+ import { Theme } from "@mui/material" ;
2
+ import Alert from "@mui/material/Alert" ;
3
+ import AlertTitle from "@mui/material/AlertTitle" ;
4
+ import type { AlertColor } from "@mui/material/Alert" ;
2
5
import { AlertDetail } from "components/Alert/Alert" ;
3
- import { type FC } from "react" ;
6
+ import type { FC } from "react" ;
4
7
5
8
type ProvisionerAlertProps = {
6
9
title : string ,
@@ -16,7 +19,7 @@ export const ProvisionerAlert : FC<ProvisionerAlertProps> = ({
16
19
return (
17
20
< Alert
18
21
severity = { severity }
19
- css = { ( theme ) => ( {
22
+ css = { ( theme : Theme ) => ( {
20
23
borderRadius : 0 ,
21
24
border : 0 ,
22
25
borderBottom : `1px solid ${ theme . palette . divider } ` ,
Original file line number Diff line number Diff line change 1
- import { type Interpolation , type Theme } from "@emotion/react" ;
1
+ import type { Interpolation , Theme } from "@emotion/react" ;
2
2
import Close from "@mui/icons-material/Close" ;
3
3
import WarningOutlined from "@mui/icons-material/WarningOutlined" ;
4
4
import Button from "@mui/material/Button" ;
@@ -86,7 +86,7 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
86
86
title = "Something went wrong"
87
87
detail = "Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
88
88
/>
89
- ) : ( ! compatibleProvisioners || compatibleProvisioners . length == 0 ) ? (
89
+ ) : ( ! compatibleProvisioners || compatibleProvisioners . length === 0 ) ? (
90
90
< ProvisionerAlert
91
91
severity = "warning"
92
92
title = "Template Creation Stuck"
Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
612
612
title = "Something went wrong"
613
613
detail = "Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
614
614
/>
615
- ) : ! compatibleProvisioners || compatibleProvisioners . length == 0 ? (
615
+ ) : ! compatibleProvisioners || compatibleProvisioners . length === 0 ? (
616
616
< ProvisionerAlert
617
617
severity = "warning"
618
618
title = "Build Stuck"
You can’t perform that action at this time.
0 commit comments