Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a75346d

Browse files
refactor(site): simplify workspaces page component structure (#8793)
1 parent bd944e0 commit a75346d

File tree

7 files changed

+281
-328
lines changed

7 files changed

+281
-328
lines changed
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { makeStyles } from "@mui/styles"
21
import TableCell from "@mui/material/TableCell"
32
import TableRow from "@mui/material/TableRow"
43
import { FC } from "react"
@@ -10,19 +9,11 @@ import {
109
export type TableEmptyProps = EmptyStateProps
1110

1211
export const TableEmpty: FC<TableEmptyProps> = (props) => {
13-
const styles = useStyles()
14-
1512
return (
1613
<TableRow>
17-
<TableCell colSpan={999} className={styles.tableCell}>
14+
<TableCell colSpan={999} sx={{ padding: "0 !important" }}>
1815
<EmptyState {...props} />
1916
</TableCell>
2017
</TableRow>
2118
)
2219
}
23-
24-
const useStyles = makeStyles(() => ({
25-
tableCell: {
26-
padding: "0 !important",
27-
},
28-
}))

site/src/components/WorkspacesTable/WorkspacesRow.tsx

Lines changed: 0 additions & 132 deletions
This file was deleted.

site/src/components/WorkspacesTable/WorkspacesTable.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

site/src/components/WorkspacesTable/WorkspacesTableBody.tsx

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)