@olea-bps/views 1.0.5 → 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.
Files changed (2) hide show
  1. package/Event/index.js +5 -1
  2. 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, theme: { colors, themeStyles }, styles, isExpanded, t }) {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olea-bps/views",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Consolidated views for OLEA",
5
5
  "main": "index.js",
6
6
  "repository": {