From b768283de404f289c51213bf60cd47a557eded0b Mon Sep 17 00:00:00 2001 From: Endre Braut Medhus Date: Fri, 19 Nov 2021 10:57:30 +0100 Subject: [PATCH] Make meetings wider, higher and add description --- src/components/myMeetings/Meeting.tsx | 29 ++++++++++--------- .../myMeetings/MeetingActionsWithPopover.tsx | 2 +- src/pages/MyMeetings.tsx | 7 +---- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/components/myMeetings/Meeting.tsx b/src/components/myMeetings/Meeting.tsx index e2d626ff..de2ae7c2 100644 --- a/src/components/myMeetings/Meeting.tsx +++ b/src/components/myMeetings/Meeting.tsx @@ -20,7 +20,7 @@ interface ParticipantResult { export interface MeetingProps { id: string; title: string; - description?: string | null; + description: string | undefined; startTime: string; organization: string; participants: ParticipantResult[]; @@ -30,14 +30,14 @@ const styles = { width: '100%', borderRadius: '4px', boxShadow, - padding: '1em 2em', + padding: '2em', overflow: 'hidden', ...transition, } as React.CSSProperties; const Meeting: React.FC< MeetingProps & { handleDeleteMeeting: (id: string) => void; meetingStatus: 'open' | 'upcoming' | 'ended' } -> = ({ id, title, startTime, participants, handleDeleteMeeting, meetingStatus }) => { +> = ({ id, title, startTime, participants, handleDeleteMeeting, meetingStatus, description }) => { const { user } = useAuth0(); const history = useHistory(); const [isAdmin, setIsAdmin] = useState(false); @@ -94,17 +94,20 @@ const Meeting: React.FC< {title} - {formatMeetingTime(new Date(startTime))} + {description && {description}} - {isAdmin ? ( - history.push(`/meeting/${id}/edit`)} - onDeleteClick={() => setDialogIsOpen(true)} - /> - ) : ( - - )} + + {formatMeetingTime(new Date(startTime))} + {isAdmin ? ( + history.push(`/meeting/${id}/edit`)} + onDeleteClick={() => setDialogIsOpen(true)} + /> + ) : ( + + )} + { diff --git a/src/components/myMeetings/MeetingActionsWithPopover.tsx b/src/components/myMeetings/MeetingActionsWithPopover.tsx index ccbc4b40..0ee40681 100644 --- a/src/components/myMeetings/MeetingActionsWithPopover.tsx +++ b/src/components/myMeetings/MeetingActionsWithPopover.tsx @@ -16,7 +16,7 @@ const MeetingActionsWithPopover: React.FC = ({ }) => { const [isOpen, setIsOpen] = useState(false); return ( - + setIsOpen(false)}>