diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2022-02-22 21:50:14 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2022-02-22 21:50:14 +0100 |
commit | fd17d6dd1f7c9fbda4d3c3e2c2eb232bd9086fab (patch) | |
tree | 436108fbaa0d386b642768a90e90c1ad33d6fad2 /webui/src/components/Date.tsx | |
parent | b0eb041e571dd616a9926d969bb42b3e7d6512e9 (diff) | |
download | git-bug-fd17d6dd1f7c9fbda4d3c3e2c2eb232bd9086fab.tar.gz |
webui: upgrade Material UI
Diffstat (limited to 'webui/src/components/Date.tsx')
-rw-r--r-- | webui/src/components/Date.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx index edc531b0..1454fac7 100644 --- a/webui/src/components/Date.tsx +++ b/webui/src/components/Date.tsx @@ -1,8 +1,7 @@ +import Tooltip from '@mui/material/Tooltip/Tooltip'; import moment from 'moment'; import Moment from 'react-moment'; -import Tooltip from '@material-ui/core/Tooltip/Tooltip'; - const HOUR = 1000 * 3600; const DAY = 24 * HOUR; const WEEK = 7 * DAY; @@ -10,7 +9,9 @@ const WEEK = 7 * DAY; type Props = { date: string }; const Date = ({ date }: Props) => ( <Tooltip title={moment(date).format('LLLL')}> - <Moment date={date} format="on ll" fromNowDuring={WEEK} /> + <span> + <Moment date={date} format="on ll" fromNowDuring={WEEK} /> + </span> </Tooltip> ); |