Skip to content

Commit eb31f80

Browse files
BrunoQuaresmapull[bot]
authored andcommitted
fix(site): remove checkbox from ws table loader (#9441)
1 parent 10d7698 commit eb31f80

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

site/src/pages/WorkspacesPage/WorkspacesTable.tsx

+12-9
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
9797
</TableRow>
9898
</TableHead>
9999
<TableBody>
100-
{!workspaces && <TableLoader />}
100+
{!workspaces && (
101+
<TableLoader canCheckWorkspaces={canCheckWorkspaces} />
102+
)}
101103
{workspaces && workspaces.length === 0 && (
102104
<ChooseOne>
103105
<Cond condition={isUsingFilter}>
@@ -285,18 +287,19 @@ export const UnhealthyTooltip = () => {
285287
)
286288
}
287289

288-
const TableLoader = () => {
290+
const TableLoader = ({
291+
canCheckWorkspaces,
292+
}: {
293+
canCheckWorkspaces: boolean
294+
}) => {
289295
return (
290296
<TableLoaderSkeleton>
291297
<TableRowSkeleton>
292-
<TableCell
293-
width="40%"
294-
sx={{
295-
paddingLeft: (theme) => `${theme.spacing(1.5)} !important`,
296-
}}
297-
>
298+
<TableCell width="40%">
298299
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
299-
<Checkbox size="small" disabled />
300+
{canCheckWorkspaces && (
301+
<Checkbox size="small" disabled sx={{ marginLeft: "-20px" }} />
302+
)}
300303
<AvatarDataSkeleton />
301304
</Box>
302305
</TableCell>

0 commit comments

Comments
 (0)