diff --git a/common/ScheduleBuilder.tsx b/common/ScheduleBuilder.tsx
index 3aceb10..afd2c19 100644
--- a/common/ScheduleBuilder.tsx
+++ b/common/ScheduleBuilder.tsx
@@ -31,7 +31,7 @@ const ScheduleBuilder = ({ hours, days, type }) => {
alignItems: 'flex-start',
},
leftColumn: {
- width: 80,
+ width: 60,
paddingTop: 38,
borderRightWidth: 1,
borderColor: '#ccc',
diff --git a/screens/Calendar.tsx b/screens/Calendar.tsx
index abc0318..b6b0148 100644
--- a/screens/Calendar.tsx
+++ b/screens/Calendar.tsx
@@ -110,16 +110,16 @@ const Calendar = () => {
}
data={calendarData.tests}
- keyExtractor={(item) => item.date + item.from + item.until + item.subject}
+ keyExtractor={(item) => item.date + item.hourFrom + item.hourUntil + item.subject}
renderItem={({ item }) => (
- {format(item.date, 'dd.MM.yyyy')}
+ {format(item.date, 'dd.MM.yyyy')}
{item.subject}
- {item.type}
+ {item.type}
{item.room}
- {item.from}-{item.until}
- {userInformation.usertype == 'teacher' && {item.class}}
- {userInformation.usertype == 'pupil' && {item.class}}
+ {item.hourFrom}-{item.hourUntil}
+ {item.timeFrom}-{item.timeUntil}
+ {userInformation.usertype == 'teacher' && {item.class}}
{userInformation.usertype == 'pupil' && {item.teacher}}
)}
@@ -346,7 +346,7 @@ const DayModal = React.memo(({ date, calendarData, onClose, dayColors, colors, u
{tests.length > 0 ? (
tests.map((test, index) => (
- {`${test.subject} ${test.type} ${test.room} ${test.from}-${test.until} ${userInformation.usertype == 'pupil' ? test.teacher : test.class}`}
+ {`${test.subject} ${test.type} ${test.room} ${test.hourFrom}-${test.hourUntil} ${test.timeFrom}-${test.timeUntil} ${userInformation.usertype == 'pupil' ? test.teacher : test.class}`}
))
) : (