Skip to content

Commit

Permalink
fix: 🐛 schema syns inte om kalender är tom (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
kajetan-kazimierczak authored Apr 29, 2021
1 parent a5694c1 commit d9bcc06
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/app/components/calendar.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CalendarItem } from '@skolplattformen/embedded-api'
import { Divider, List, ListItem, Text } from '@ui-kitten/components'
import moment from 'moment'
import React from 'react'
import { Image, ListRenderItemInfo, StyleSheet, View } from 'react-native'
import { ListRenderItemInfo, StyleSheet, View } from 'react-native'
import { Colors, Typography } from '../styles'
import { useChild } from './childContext.component'
import { CalendarOutlineIcon } from './icon.component'
Expand All @@ -15,12 +15,8 @@ export const Calendar = () => {
const { data } = useCalendar(child)

return !data?.length ? (
<View style={styles.emptyState}>
<Image
source={require('../assets/girls.png')}
style={styles.emptyStateImage}
/>
<Text category="h5">Det ser lite tomt ut i kalendern</Text>
<View>
<Week child={child} />
</View>
) : (
<View>
Expand Down Expand Up @@ -54,9 +50,6 @@ export const Calendar = () => {
}

const styles = StyleSheet.create({
emptyState: {
flex: 1,
},
emptyStateImage: {
height: 200,
width: '100%',
Expand Down

0 comments on commit d9bcc06

Please sign in to comment.