diff --git a/screens/Calendar.tsx b/screens/Calendar.tsx index c39904e..bdf0d2a 100644 --- a/screens/Calendar.tsx +++ b/screens/Calendar.tsx @@ -114,9 +114,10 @@ const Calendar = () => { renderItem={({ item }) => ( - - {format(item.date, 'dd.MM.yyyy')} - + {format(item.date, 'dd.MM.yyyy')} + {`${item.timeFrom}-${item.timeUntil}`} + + {item.subject} {item.type} {userInformation.usertype === 'teacher' && ( @@ -125,11 +126,8 @@ const Calendar = () => { {userInformation.usertype === 'pupil' && ( {item.teacher} )} - - {item.room} - {`${item.hourFrom}-${item.hourUntil}`} - {`${item.timeFrom}-${item.timeUntil}`} + {`${item.hourFrom||'n'}-${item.hourUntil||'n'}`} )}