@olea-bps/views 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Event/index.js +5 -1
- package/TimetableList/index.js +3 -3
- package/package.json +1 -1
package/Event/index.js
CHANGED
|
@@ -102,7 +102,11 @@ function generateTimeslots(allEvents, start, end, length) {
|
|
|
102
102
|
* @param {string} props.startTime Startzeit der Liste
|
|
103
103
|
* @param {string} props.endTime Endzeit der Liste
|
|
104
104
|
*/
|
|
105
|
-
function TimeslotAccordionHeader({ startTime, endTime,
|
|
105
|
+
function TimeslotAccordionHeader({ startTime, endTime, styles, isExpanded }) {
|
|
106
|
+
const { t } = useTranslation();
|
|
107
|
+
const theme = useTheme();
|
|
108
|
+
const { colors, themeStyles } = theme;
|
|
109
|
+
|
|
106
110
|
return (
|
|
107
111
|
<View style={styles.header}>
|
|
108
112
|
<View style={[themeStyles.cardLeftIcon, { marginStart: 5 }]}>
|
package/TimetableList/index.js
CHANGED
|
@@ -148,7 +148,7 @@ function TimetableViewList(props) {
|
|
|
148
148
|
[theme]
|
|
149
149
|
)
|
|
150
150
|
|
|
151
|
-
const otherCourses = courses[undefined];
|
|
151
|
+
const otherCourses = courses?.[undefined] ?? [];
|
|
152
152
|
const activeTabDate = daysTabViewRoutes[daysTabViewActiveRouteIndex]?.date;
|
|
153
153
|
const activeTabWeek = activeTabDate.weekNumber;
|
|
154
154
|
|
|
@@ -232,7 +232,7 @@ function TimetableViewList(props) {
|
|
|
232
232
|
inactiveColor={themeStyles.tabs.inactiveColor}
|
|
233
233
|
indicatorStyle={themeStyles.tabIndicator}
|
|
234
234
|
tabStyle={{ width: 'auto', paddingHorizontal: 20 }}
|
|
235
|
-
renderTabBarItem={({ route, navigationState, ...rest}) =>
|
|
235
|
+
renderTabBarItem={({ route, navigationState, ...rest }) =>
|
|
236
236
|
<TabBarItem
|
|
237
237
|
{...rest}
|
|
238
238
|
key={route.key}
|
|
@@ -243,7 +243,7 @@ function TimetableViewList(props) {
|
|
|
243
243
|
inactiveColor={themeStyles.tabs.inactiveColor}
|
|
244
244
|
// Die einbindung von moment.js zum Anzeigen des Wochentages sollte langfristig entfernt werden.
|
|
245
245
|
// Funktioniert die Luxon funktionalität der Wochenanzeige nicht unter iOS datetime.toFormat('ccc')
|
|
246
|
-
|
|
246
|
+
label={
|
|
247
247
|
// Generieren das Tab-Textes
|
|
248
248
|
({ route }) => {
|
|
249
249
|
// Datumsobject aus dem Tab holen
|