Skip to content

Commit f9cf33c

Browse files
committed
chore: update TimelineDateRow
1 parent 1d1a16e commit f9cf33c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

site/src/components/Timeline/TimelineDateRow.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { css, useTheme } from "@emotion/react";
21
import TableCell from "@mui/material/TableCell";
32
import TableRow from "@mui/material/TableRow";
43
import type { FC } from "react";
@@ -9,25 +8,10 @@ export interface TimelineDateRow {
98
}
109

1110
export const TimelineDateRow: FC<TimelineDateRow> = ({ date }) => {
12-
const theme = useTheme();
13-
1411
return (
15-
<TableRow
16-
css={css`
17-
&:not(:first-of-type) td {
18-
border-top: 1px solid ${theme.palette.divider};
19-
}
20-
`}
21-
>
12+
<TableRow className="[&:not:first-of-type_td]:border-t [&:not:first-of-type_td]:border-solid">
2213
<TableCell
23-
css={{
24-
padding: "8px 32px !important",
25-
background: `${theme.palette.background.paper} !important`,
26-
fontSize: 12,
27-
position: "relative",
28-
color: theme.palette.text.secondary,
29-
textTransform: "capitalize",
30-
}}
14+
className="px-2! py-8! text-xs relative text-content-secondary bg-surface-secondary capitalize"
3115
title={date.toLocaleDateString()}
3216
>
3317
{createDisplayDate(date)}

0 commit comments

Comments
 (0)