Skip to content

Commit 8c70b6c

Browse files
refactor: Update table cell colors to match the ones in the Workspace (#3830)
page
1 parent 21ae411 commit 8c70b6c

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import Link from "@material-ui/core/Link"
2-
import { fade, makeStyles } from "@material-ui/core/styles"
2+
import { fade, makeStyles, Theme } from "@material-ui/core/styles"
33
import Table from "@material-ui/core/Table"
44
import TableBody from "@material-ui/core/TableBody"
55
import TableCell from "@material-ui/core/TableCell"
66
import TableContainer from "@material-ui/core/TableContainer"
77
import TableHead from "@material-ui/core/TableHead"
88
import TableRow from "@material-ui/core/TableRow"
99
import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"
10+
import useTheme from "@material-ui/styles/useTheme"
1011
import { FC } from "react"
1112
import { useNavigate } from "react-router-dom"
1213
import { createDayString } from "util/createDayString"
@@ -80,6 +81,7 @@ export interface TemplatesPageViewProps {
8081
export const TemplatesPageView: FC<React.PropsWithChildren<TemplatesPageViewProps>> = (props) => {
8182
const styles = useStyles()
8283
const navigate = useNavigate()
84+
const theme: Theme = useTheme()
8385

8486
return (
8587
<Margins>
@@ -173,13 +175,21 @@ export const TemplatesPageView: FC<React.PropsWithChildren<TemplatesPageViewProp
173175
</TableCellLink>
174176

175177
<TableCellLink to={templatePageLink}>
176-
{Language.developerCount(template.workspace_owner_count)}
178+
<span style={{ color: theme.palette.text.secondary }}>
179+
{Language.developerCount(template.workspace_owner_count)}
180+
</span>
177181
</TableCellLink>
178182

179183
<TableCellLink data-chromatic="ignore" to={templatePageLink}>
180-
{createDayString(template.updated_at)}
184+
<span style={{ color: theme.palette.text.secondary }}>
185+
{createDayString(template.updated_at)}
186+
</span>
187+
</TableCellLink>
188+
<TableCellLink to={templatePageLink}>
189+
<span style={{ color: theme.palette.text.secondary }}>
190+
{template.created_by_name}
191+
</span>
181192
</TableCellLink>
182-
<TableCellLink to={templatePageLink}>{template.created_by_name}</TableCellLink>
183193
<TableCellLink to={templatePageLink}>
184194
<div className={styles.arrowCell}>
185195
<KeyboardArrowRight className={styles.arrowRight} />

0 commit comments

Comments
 (0)