|
1 | 1 | 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" |
3 | 3 | import Table from "@material-ui/core/Table"
|
4 | 4 | import TableBody from "@material-ui/core/TableBody"
|
5 | 5 | import TableCell from "@material-ui/core/TableCell"
|
6 | 6 | import TableContainer from "@material-ui/core/TableContainer"
|
7 | 7 | import TableHead from "@material-ui/core/TableHead"
|
8 | 8 | import TableRow from "@material-ui/core/TableRow"
|
9 | 9 | import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"
|
| 10 | +import useTheme from "@material-ui/styles/useTheme" |
10 | 11 | import { FC } from "react"
|
11 | 12 | import { useNavigate } from "react-router-dom"
|
12 | 13 | import { createDayString } from "util/createDayString"
|
@@ -80,6 +81,7 @@ export interface TemplatesPageViewProps {
|
80 | 81 | export const TemplatesPageView: FC<React.PropsWithChildren<TemplatesPageViewProps>> = (props) => {
|
81 | 82 | const styles = useStyles()
|
82 | 83 | const navigate = useNavigate()
|
| 84 | + const theme: Theme = useTheme() |
83 | 85 |
|
84 | 86 | return (
|
85 | 87 | <Margins>
|
@@ -173,13 +175,21 @@ export const TemplatesPageView: FC<React.PropsWithChildren<TemplatesPageViewProp
|
173 | 175 | </TableCellLink>
|
174 | 176 |
|
175 | 177 | <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> |
177 | 181 | </TableCellLink>
|
178 | 182 |
|
179 | 183 | <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> |
181 | 192 | </TableCellLink>
|
182 |
| - <TableCellLink to={templatePageLink}>{template.created_by_name}</TableCellLink> |
183 | 193 | <TableCellLink to={templatePageLink}>
|
184 | 194 | <div className={styles.arrowCell}>
|
185 | 195 | <KeyboardArrowRight className={styles.arrowRight} />
|
|
0 commit comments