From 353ee054141d37c6f9f60045eba0597c8e139d5e Mon Sep 17 00:00:00 2001 From: rui hildt Date: Fri, 4 Sep 2020 19:00:52 +0200 Subject: [PATCH] Add links to meetings on Dashboard --- src/components/Dashboard/MeetingList.js | 104 +++++++++--------------- src/screens/Dashboard.js | 4 +- src/screens/styles/layout.less | 6 ++ 3 files changed, 48 insertions(+), 66 deletions(-) diff --git a/src/components/Dashboard/MeetingList.js b/src/components/Dashboard/MeetingList.js index 8b47b51..4762c5c 100644 --- a/src/components/Dashboard/MeetingList.js +++ b/src/components/Dashboard/MeetingList.js @@ -8,51 +8,47 @@ export default function MeetingList({ meetings, status }) { {meetings.map((meeting) => ( - - - {/* Icon */} - - + + + {/* Icon */} + + + + + {/*Meeting info*/} + - - - {/*base info*/} - -
{meeting.title}
- {meeting.start_time !== null && ( - <>{meeting.start_time} - )} -
- - - View - | - Edit - -
-
+ > +
+ {meeting.title} +
+ {meeting.start_time !== null && ( + <>{meeting.start_time} + )} +
+
+
+ ))}
@@ -67,28 +63,8 @@ const styleCenter = { height: '60px', }; -const alignRight = { - display: 'flex', - justifyContent: 'center', - alignItems: 'center', - height: '60px', - marginLeft: 'auto' -}; - -const slimText = { - fontSize: '0.666em', - color: '#97969B', - fontWeight: 'lighter', - paddingBottom: 5, -}; - const titleStyle = { paddingBottom: 5, whiteSpace: 'nowrap', fontWeight: 500, -}; - -const dataStyle = { - fontSize: '1.2em', - fontWeight: 500, -}; +}; \ No newline at end of file diff --git a/src/screens/Dashboard.js b/src/screens/Dashboard.js index df07a84..a5fa899 100644 --- a/src/screens/Dashboard.js +++ b/src/screens/Dashboard.js @@ -39,7 +39,7 @@ export default function Dashboard({ currentUser }) { <> {loading ? ( - +

Invitations

Confirmed

@@ -51,7 +51,7 @@ export default function Dashboard({ currentUser }) {
) : ( - +

Invitations

{confirmed && (