aboutsummaryrefslogtreecommitdiffstats
path: root/webui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-23 15:58:39 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-23 15:58:39 +0100
commit1164e3410e94709f1e355c5be65d3b117e2d6b2d (patch)
tree7e6da0283fa3360282558bb44f0a79caa2e43141 /webui
parentf87d63b3c656f6efba3c62c121f66e513ca3efea (diff)
downloadgit-bug-1164e3410e94709f1e355c5be65d3b117e2d6b2d.tar.gz
webui: fix bad formatting on Date
Diffstat (limited to 'webui')
-rw-r--r--webui/Makefile6
-rw-r--r--webui/src/components/Date.tsx4
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>
);