Skip to content

Commit e281d6b

Browse files
committed
linter fixes
1 parent 3cf53ef commit e281d6b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

site/src/modules/provisioners/ProvisionerAlert.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
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";
25
import { AlertDetail } from "components/Alert/Alert";
3-
import { type FC } from "react";
6+
import type { FC } from "react";
47

58
type ProvisionerAlertProps = {
69
title: string,
@@ -16,7 +19,7 @@ export const ProvisionerAlert : FC<ProvisionerAlertProps> = ({
1619
return (
1720
<Alert
1821
severity={severity}
19-
css={(theme) => ({
22+
css={(theme: Theme) => ({
2023
borderRadius: 0,
2124
border: 0,
2225
borderBottom: `1px solid ${theme.palette.divider}`,

site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Interpolation, type Theme } from "@emotion/react";
1+
import type { Interpolation, Theme } from "@emotion/react";
22
import Close from "@mui/icons-material/Close";
33
import WarningOutlined from "@mui/icons-material/WarningOutlined";
44
import Button from "@mui/material/Button";
@@ -86,7 +86,7 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
8686
title="Something went wrong"
8787
detail="Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
8888
/>
89-
) : (!compatibleProvisioners || compatibleProvisioners.length == 0) ? (
89+
) : (!compatibleProvisioners || compatibleProvisioners.length === 0) ? (
9090
<ProvisionerAlert
9191
severity="warning"
9292
title="Template Creation Stuck"

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
612612
title="Something went wrong"
613613
detail="Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
614614
/>
615-
) : !compatibleProvisioners || compatibleProvisioners.length == 0 ? (
615+
) : !compatibleProvisioners || compatibleProvisioners.length === 0 ? (
616616
<ProvisionerAlert
617617
severity="warning"
618618
title="Build Stuck"

0 commit comments

Comments
 (0)