Skip to content

Commit 4dcd7e3

Browse files
committed
FMT
1 parent 57c6b0b commit 4dcd7e3

File tree

8 files changed

+27
-20
lines changed

8 files changed

+27
-20
lines changed

site/src/components/SelectMenu/SelectMenu.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
SearchField,
77
type SearchFieldProps,
88
} from "components/SearchField/SearchField";
9-
import { CheckIcon } from "lucide-react";
109
import {
1110
Popover,
1211
PopoverContent,
1312
PopoverTrigger,
1413
} from "components/deprecated/Popover/Popover";
14+
import { CheckIcon } from "lucide-react";
1515
import {
1616
Children,
1717
type FC,
@@ -145,11 +145,8 @@ export const SelectMenuItem: FC<MenuItemProps> = (props) => {
145145
>
146146
{props.children}
147147
{props.selected && (
148-
<CheckIcon
149-
className="size-icon-xs"
150-
css={{ marginLeft: "auto" }}
151-
/>
148+
<CheckIcon className="size-icon-xs" css={{ marginLeft: "auto" }} />
152149
)}
153150
</MenuItem>
154151
);
155-
};
152+
};

site/src/components/Sidebar/Sidebar.stories.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
import { CalendarCogIcon, FingerprintIcon, KeyIcon, LockIcon, UserIcon } from "lucide-react";
21
import type { Meta, StoryObj } from "@storybook/react";
32
import { Avatar } from "components/Avatar/Avatar";
3+
import {
4+
CalendarCogIcon,
5+
FingerprintIcon,
6+
KeyIcon,
7+
LockIcon,
8+
UserIcon,
9+
} from "lucide-react";
410
import { Sidebar, SidebarHeader, SidebarNavItem } from "./Sidebar";
511

612
const meta: Meta<typeof Sidebar> = {
@@ -38,4 +44,4 @@ export const Default: Story = {
3844
</Sidebar>
3945
),
4046
},
41-
};
47+
};

site/src/pages/TemplatePage/TemplateEmbedPage/TemplateEmbedPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import Radio from "@mui/material/Radio";
55
import RadioGroup from "@mui/material/RadioGroup";
66
import { API } from "api/api";
77
import type { Template, TemplateVersionParameter } from "api/typesGenerated";
8-
import { CheckIcon } from "lucide-react";
98
import { FormSection, VerticalForm } from "components/Form/Form";
109
import { Loader } from "components/Loader/Loader";
1110
import { RichParameterInput } from "components/RichParameterInput/RichParameterInput";
1211
import { useClipboard } from "hooks/useClipboard";
12+
import { CheckIcon } from "lucide-react";
1313
import { useTemplateLayoutContext } from "pages/TemplatePage/TemplateLayout";
1414
import { type FC, useEffect, useState } from "react";
1515
import { Helmet } from "react-helmet-async";
@@ -206,4 +206,4 @@ export const TemplateEmbedPageView: FC<TemplateEmbedPageViewProps> = ({
206206
);
207207
};
208208

209-
export default TemplateEmbedPage;
209+
export default TemplateEmbedPage;

site/src/pages/TemplatePage/TemplateInsightsPage/IntervalMenu.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,12 @@ export const IntervalMenu: FC<IntervalMenuProps> = ({ value, onChange }) => {
7171
>
7272
{label}
7373
<div css={{ width: 16, height: 16 }}>
74-
{value === interval && (
75-
<CheckIcon className="size-icon-xs" />
76-
)}
74+
{value === interval && <CheckIcon className="size-icon-xs" />}
7775
</div>
7876
</MenuItem>
7977
);
8078
})}
8179
</Menu>
8280
</div>
8381
);
84-
};
82+
};

site/src/pages/TemplatePage/TemplateInsightsPage/WeekPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ export const WeekPicker: FC<WeekPickerProps> = ({ value, onChange }) => {
8080
</Menu>
8181
</div>
8282
);
83-
};
83+
};

site/src/pages/TemplateSettingsPage/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import VariablesIcon from "@mui/icons-material/CodeOutlined";
22
import GeneralIcon from "@mui/icons-material/SettingsOutlined";
33
import ScheduleIcon from "@mui/icons-material/TimerOutlined";
4-
import { LockIcon } from "lucide-react";
54
import type { Template } from "api/typesGenerated";
65
import { Avatar } from "components/Avatar/Avatar";
76
import {
87
Sidebar as BaseSidebar,
98
SidebarHeader,
109
SidebarNavItem,
1110
} from "components/Sidebar/Sidebar";
11+
import { LockIcon } from "lucide-react";
1212
import { linkToTemplate, useLinks } from "modules/navigation";
1313
import type { FC } from "react";
1414

@@ -46,4 +46,4 @@ export const Sidebar: FC<SidebarProps> = ({ template }) => {
4646
</SidebarNavItem>
4747
</BaseSidebar>
4848
);
49-
};
49+
};

site/src/pages/TemplateVersionEditorPage/TemplateVersionStatusBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ const getStatus = (
7272
icon: <CheckIcon className="size-icon-sm" />,
7373
};
7474
}
75-
};
75+
};

site/src/pages/UserSettingsPage/Sidebar.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import AppearanceIcon from "@mui/icons-material/Brush";
22
import NotificationsIcon from "@mui/icons-material/NotificationsNoneOutlined";
3-
import { CalendarCogIcon, FingerprintIcon, KeyIcon, LockIcon, UserIcon } from "lucide-react";
43
import type { User } from "api/typesGenerated";
54
import { Avatar } from "components/Avatar/Avatar";
65
import { GitIcon } from "components/Icons/GitIcon";
@@ -9,6 +8,13 @@ import {
98
SidebarHeader,
109
SidebarNavItem,
1110
} from "components/Sidebar/Sidebar";
11+
import {
12+
CalendarCogIcon,
13+
FingerprintIcon,
14+
KeyIcon,
15+
LockIcon,
16+
UserIcon,
17+
} from "lucide-react";
1218
import { useDashboard } from "modules/dashboard/useDashboard";
1319
import type { FC } from "react";
1420

@@ -56,4 +62,4 @@ export const Sidebar: FC<SidebarProps> = ({ user }) => {
5662
</SidebarNavItem>
5763
</BaseSidebar>
5864
);
59-
};
65+
};

0 commit comments

Comments
 (0)