1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
2
import InstallDesktopIcon from "@mui/icons-material/InstallDesktop" ;
3
- import PersonOutlinedIcon from "@mui/icons-material/PersonOutlined" ;
4
- import ScheduleIcon from "@mui/icons-material/Schedule" ;
5
- import SettingsSuggestIcon from "@mui/icons-material/SettingsSuggest" ;
6
3
import { API } from "api/api" ;
7
4
import type { TemplateVersion , Workspace } from "api/typesGenerated" ;
8
5
import { ErrorAlert } from "components/Alert/ErrorAlert" ;
@@ -12,6 +9,7 @@ import { MemoizedInlineMarkdown } from "components/Markdown/Markdown";
12
9
import { Stack } from "components/Stack/Stack" ;
13
10
import dayjs from "dayjs" ;
14
11
import relativeTime from "dayjs/plugin/relativeTime" ;
12
+ import { ClockIcon , SettingsIcon , UserIcon } from "lucide-react" ;
15
13
import { type FC , type ReactNode , useEffect , useMemo , useState } from "react" ;
16
14
import { useQueries } from "react-query" ;
17
15
@@ -293,7 +291,7 @@ const DormantWorkspaces: FC<DormantWorkspacesProps> = ({ workspaces }) => {
293
291
</ span >
294
292
</ Stack >
295
293
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
296
- < ScheduleIcon css = { styles . summaryIcon } />
294
+ < ClockIcon className = "size-icon-xs" />
297
295
< span
298
296
css = { { whiteSpace : "nowrap" , textOverflow : "ellipsis" } }
299
297
>
@@ -317,7 +315,7 @@ const DormantWorkspaces: FC<DormantWorkspacesProps> = ({ workspaces }) => {
317
315
</ Stack >
318
316
{ mostRecent && (
319
317
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
320
- < ScheduleIcon css = { styles . summaryIcon } />
318
+ < ClockIcon className = "size-icon-xs" />
321
319
< span > Last used { lastUsed ( mostRecent . last_used_at ) } </ span >
322
320
</ Stack >
323
321
) }
@@ -358,7 +356,7 @@ const Updates: FC<UpdatesProps> = ({ workspaces, updates, error }) => {
358
356
</ Stack >
359
357
{ updateCount && (
360
358
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
361
- < SettingsSuggestIcon css = { styles . summaryIcon } />
359
+ < SettingsIcon className = "size-icon-xs" />
362
360
< span > { updateCount } </ span >
363
361
</ Stack >
364
362
) }
@@ -433,10 +431,8 @@ const lastUsed = (time: string) => {
433
431
} ;
434
432
435
433
const PersonIcon : FC = ( ) => {
436
- // This size doesn't match the rest of the icons because MUI is just really
437
- // inconsistent. We have to make it bigger than the rest, and pull things in
438
- // on the sides to compensate.
439
- return < PersonOutlinedIcon css = { { width : 18 , height : 18 , margin : - 1 } } /> ;
434
+ // Using the Lucide icon with appropriate size class
435
+ return < UserIcon className = "size-icon-sm" css = { { margin : - 1 } } /> ;
440
436
} ;
441
437
442
438
const styles = {
0 commit comments