@olea-bps/components 1.0.9 → 1.0.11
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/MensaMenu/index.js +4 -6
- package/TimetableDay/index.js +2 -2
- package/TimetableMonth/index.js +2 -2
- package/TimetableWeek/index.js +2 -2
- package/package.json +1 -1
package/MensaMenu/index.js
CHANGED
|
@@ -180,12 +180,10 @@ function Meal({ settings, meal, priceGroupCode, priceGroupName }) {
|
|
|
180
180
|
<Text style={styles.mealItemTitleText}>
|
|
181
181
|
{meal.category}
|
|
182
182
|
</Text>
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/>
|
|
188
|
-
</Text>
|
|
183
|
+
<SelectionIcons
|
|
184
|
+
selections={meal?.selections ?? []}
|
|
185
|
+
iconSize={styles.mealItemTitleText.lineHeight}
|
|
186
|
+
/>
|
|
189
187
|
</View>
|
|
190
188
|
<Text style={styles.mealItemText}>
|
|
191
189
|
{meal.title}
|
package/TimetableDay/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const daysTabDuration = Duration.fromISO('P6M');
|
|
|
39
39
|
* @param {(DateTime) => void} props.onDateChanged Callback, welche aufgerufen wird, wenn der Tag in der Ansicht wechselt
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
|
-
function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, onDateChanged, onCourseSelected }) {
|
|
42
|
+
function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onDateChanged, onCourseSelected }) {
|
|
43
43
|
const { appSettings: { modules: { timetable: { showDetails } } } } = theme;
|
|
44
44
|
const today = DateTime.now().toISODate();
|
|
45
45
|
|
|
@@ -169,7 +169,7 @@ function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinute
|
|
|
169
169
|
renderHeader={() => null}
|
|
170
170
|
overlapOffset={95}
|
|
171
171
|
mode={'day'}
|
|
172
|
-
height={
|
|
172
|
+
height={calendarHeight}
|
|
173
173
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
174
174
|
weekStartsOn={1}
|
|
175
175
|
date={route.key}
|
package/TimetableMonth/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import CalendarStrip from 'react-native-calendar-strip';
|
|
|
26
26
|
import { DateTime } from 'luxon';
|
|
27
27
|
|
|
28
28
|
function CalendarMonth(props) {
|
|
29
|
-
const { theme, setMonth, today, locale, onMonthChanged } = props;
|
|
29
|
+
const { theme, setMonth, today, locale, onMonthChanged, calendarHeight } = props;
|
|
30
30
|
const styles = useMemo(
|
|
31
31
|
() => StyleSheet.create(componentStyles(theme)),
|
|
32
32
|
[theme]
|
|
@@ -121,7 +121,7 @@ function CalendarMonth(props) {
|
|
|
121
121
|
renderEvent={renderEvent}
|
|
122
122
|
renderHeaderForMonthView={renderHeader}
|
|
123
123
|
date={selectedDate.current}
|
|
124
|
-
height={
|
|
124
|
+
height={calendarHeight}
|
|
125
125
|
mode={'month'}
|
|
126
126
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
127
127
|
weekStartsOn={1}
|
package/TimetableWeek/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const daysTabDuration = Duration.fromISO('P6M');
|
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
42
|
function CalendarWeek(props) {
|
|
43
|
-
const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, onWeekChanged, onCourseSelected } = props;
|
|
43
|
+
const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onWeekChanged, onCourseSelected } = props;
|
|
44
44
|
|
|
45
45
|
const styles = useMemo(
|
|
46
46
|
() => StyleSheet.create(componentStyles(theme)),
|
|
@@ -167,7 +167,7 @@ function CalendarWeek(props) {
|
|
|
167
167
|
renderEvent={renderEvent}
|
|
168
168
|
renderHeader={() => null}
|
|
169
169
|
mode={'week'}
|
|
170
|
-
height={
|
|
170
|
+
height={calendarHeight}
|
|
171
171
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
172
172
|
weekStartsOn={1}
|
|
173
173
|
date={route.weekbeginISODate}
|