File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
modules/workspaces/WorkspaceDormantBadge Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import RecyclingIcon from "@mui/icons-material/Recycling" ;
2
1
import Tooltip from "@mui/material/Tooltip" ;
3
2
import type { Workspace } from "api/typesGenerated" ;
4
3
import { Badge } from "components/Badge/Badge" ;
5
- import { Pill } from "components/Pill/Pill" ;
6
4
import { formatDistanceToNow } from "date-fns" ;
7
5
import type { FC } from "react" ;
8
6
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ import {
30
30
TableLoaderSkeleton ,
31
31
TableRowSkeleton ,
32
32
} from "components/TableLoader/TableLoader" ;
33
+ import dayjs from "dayjs" ;
34
+ import relativeTime from "dayjs/plugin/relativeTime" ;
33
35
import { useClickableTableRow } from "hooks/useClickableTableRow" ;
34
36
import { useDashboard } from "modules/dashboard/useDashboard" ;
35
37
import { WorkspaceAppStatus } from "modules/workspaces/WorkspaceAppStatus/WorkspaceAppStatus" ;
36
38
import { WorkspaceDormantBadge } from "modules/workspaces/WorkspaceDormantBadge/WorkspaceDormantBadge" ;
37
39
import { WorkspaceOutdatedTooltip } from "modules/workspaces/WorkspaceOutdatedTooltip/WorkspaceOutdatedTooltip" ;
38
- import { WorkspaceStatusBadge } from "modules/workspaces/WorkspaceStatusBadge/WorkspaceStatusBadge" ;
39
- import { LastUsed } from "pages/WorkspacesPage/LastUsed" ;
40
40
import { type FC , type ReactNode , useMemo } from "react" ;
41
41
import { useNavigate } from "react-router-dom" ;
42
42
import { cn } from "utils/cn" ;
@@ -48,6 +48,8 @@ import {
48
48
} from "utils/workspace" ;
49
49
import { WorkspacesEmpty } from "./WorkspacesEmpty" ;
50
50
51
+ dayjs . extend ( relativeTime ) ;
52
+
51
53
export interface WorkspacesTableProps {
52
54
workspaces ?: readonly Workspace [ ] ;
53
55
checkedWorkspaces : readonly Workspace [ ] ;
You can’t perform that action at this time.
0 commit comments