From 8b85780d76ad45675582f4478eedb026b7ac25e1 Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Thu, 13 Feb 2020 00:53:29 +0100
Subject: webui: start reorganizing the component structure

---
 webui/src/components/Date.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 webui/src/components/Date.tsx

(limited to 'webui/src/components/Date.tsx')

diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx
new file mode 100644
index 00000000..a830546c
--- /dev/null
+++ b/webui/src/components/Date.tsx
@@ -0,0 +1,17 @@
+import Tooltip from '@material-ui/core/Tooltip/Tooltip';
+import moment from 'moment';
+import React from 'react';
+import Moment from 'react-moment';
+
+const HOUR = 1000 * 3600;
+const DAY = 24 * HOUR;
+const WEEK = 7 * DAY;
+
+type Props = { date: string };
+const Date = ({ date }: Props) => (
+  <Tooltip title={moment(date).format('MMMM D, YYYY, h:mm a')}>
+    <Moment date={date} fromNowDuring={WEEK} />
+  </Tooltip>
+);
+
+export default Date;
-- 
cgit 


From ce6f6a984b374b189141116433ced80dfa0c2aae Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Thu, 13 Feb 2020 20:00:03 +0100
Subject: webui: move pages components

---
 webui/src/components/Date.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'webui/src/components/Date.tsx')

diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx
index a830546c..be0f5835 100644
--- a/webui/src/components/Date.tsx
+++ b/webui/src/components/Date.tsx
@@ -1,8 +1,9 @@
-import Tooltip from '@material-ui/core/Tooltip/Tooltip';
 import moment from 'moment';
 import React from 'react';
 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;
-- 
cgit 


From afd22acd5ddb6c92e77b7660ef7ee65f4192d7ae Mon Sep 17 00:00:00 2001
From: Michael Muré <batolettre@gmail.com>
Date: Mon, 17 Feb 2020 00:16:07 +0100
Subject: webui: more readable dates, also localized

---
 webui/src/components/Date.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'webui/src/components/Date.tsx')

diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx
index be0f5835..8438b801 100644
--- a/webui/src/components/Date.tsx
+++ b/webui/src/components/Date.tsx
@@ -10,8 +10,8 @@ const WEEK = 7 * DAY;
 
 type Props = { date: string };
 const Date = ({ date }: Props) => (
-  <Tooltip title={moment(date).format('MMMM D, YYYY, h:mm a')}>
-    <Moment date={date} fromNowDuring={WEEK} />
+  <Tooltip title={moment(date).format('LLLL')}>
+    <span>on <Moment date={date} format='ll' fromNowDuring={WEEK} /></span>
   </Tooltip>
 );
 
-- 
cgit 


From f96484391ae817a18f503b5c31cd3bd2211553df Mon Sep 17 00:00:00 2001
From: ludovicm67 <ludovicmuller1@gmail.com>
Date: Sat, 22 Feb 2020 19:25:37 +0100
Subject: webui: run linter fix

---
 webui/src/components/Date.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'webui/src/components/Date.tsx')

diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx
index 8438b801..146a3496 100644
--- a/webui/src/components/Date.tsx
+++ b/webui/src/components/Date.tsx
@@ -11,7 +11,9 @@ 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>
+    <span>
+      on <Moment date={date} format="ll" fromNowDuring={WEEK} />
+    </span>
   </Tooltip>
 );
 
-- 
cgit 

