diff options
Diffstat (limited to 'webui')
-rw-r--r-- | webui/Makefile | 6 | ||||
-rw-r--r-- | webui/src/components/Date.tsx | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/webui/Makefile b/webui/Makefile index 4ba7fa29..4f59b35a 100644 --- a/webui/Makefile +++ b/webui/Makefile @@ -11,3 +11,9 @@ test: build: npm run build + +lint: + npm run lint + +fix-lint: + npm run lint -- --fix diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx index 146a3496..f9e0a0b2 100644 --- a/webui/src/components/Date.tsx +++ b/webui/src/components/Date.tsx @@ -11,9 +11,7 @@ const WEEK = 7 * DAY; type Props = { date: string }; const Date = ({ date }: Props) => ( <Tooltip title={moment(date).format('LLLL')}> - <span> - on <Moment date={date} format="ll" fromNowDuring={WEEK} /> - </span> + <Moment date={date} format="on ll" fromNowDuring={WEEK} /> </Tooltip> ); |