Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linter fixes
  • Loading branch information
SasSwart committed Nov 22, 2024
commit e281d6b7530ef2f2f695b4f736dee19d9a78f644
9 changes: 6 additions & 3 deletions site/src/modules/provisioners/ProvisionerAlert.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Alert, AlertColor, AlertTitle } from "@mui/material";
import { Theme } from "@mui/material";
import Alert from "@mui/material/Alert";
import AlertTitle from "@mui/material/AlertTitle";
import type { AlertColor } from "@mui/material/Alert";
import { AlertDetail } from "components/Alert/Alert";
import { type FC } from "react";
import type { FC } from "react";

type ProvisionerAlertProps = {
title: string,
Expand All @@ -16,7 +19,7 @@ export const ProvisionerAlert : FC<ProvisionerAlertProps> = ({
return (
<Alert
severity={severity}
css={(theme) => ({
css={(theme: Theme) => ({
borderRadius: 0,
border: 0,
borderBottom: `1px solid ${theme.palette.divider}`,
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Interpolation, type Theme } from "@emotion/react";
import type { Interpolation, Theme } from "@emotion/react";
import Close from "@mui/icons-material/Close";
import WarningOutlined from "@mui/icons-material/WarningOutlined";
import Button from "@mui/material/Button";
Expand Down Expand Up @@ -86,7 +86,7 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
title="Something went wrong"
detail="Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
/>
) : (!compatibleProvisioners || compatibleProvisioners.length == 0) ? (
) : (!compatibleProvisioners || compatibleProvisioners.length === 0) ? (
<ProvisionerAlert
severity="warning"
title="Template Creation Stuck"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
title="Something went wrong"
detail="Could not determine provisioner status. Your template build may fail. If your template does not build, please contact your administrator"
/>
) : !compatibleProvisioners || compatibleProvisioners.length == 0 ? (
) : !compatibleProvisioners || compatibleProvisioners.length === 0 ? (
<ProvisionerAlert
severity="warning"
title="Build Stuck"
Expand Down
Loading