File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
site/src/components/Timeline Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 1
- import { css , useTheme } from "@emotion/react" ;
2
1
import TableCell from "@mui/material/TableCell" ;
3
2
import TableRow from "@mui/material/TableRow" ;
4
3
import type { FC } from "react" ;
@@ -9,25 +8,10 @@ export interface TimelineDateRow {
9
8
}
10
9
11
10
export const TimelineDateRow : FC < TimelineDateRow > = ( { date } ) => {
12
- const theme = useTheme ( ) ;
13
-
14
11
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" >
22
13
< 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"
31
15
title = { date . toLocaleDateString ( ) }
32
16
>
33
17
{ createDisplayDate ( date ) }
You can’t perform that action at this time.
0 commit comments