@@ -19,6 +19,8 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context'
1919import { ShowInternalEventsToggle } from '@/components/events/ShowInternalEventsToggle'
2020import { Icon , type IconNames } from '@/components/generic/atoms/Icon'
2121import { Search } from '@/components/generic/atoms/Search'
22+ import { ComingSoon } from '@/components/generic/containers/ComingSoon'
23+ import { conName } from '@/configuration'
2224import { useCache } from '@/context/data/Cache'
2325import type { EventDayDetails } from '@/context/data/types.details'
2426import { ScheduleSearchContext } from '@/context/ScheduleSearchContext'
@@ -68,7 +70,7 @@ export default function ScheduleLayout() {
6870 const insets = useSafeAreaInsets ( )
6971 const now = useNow ( 'static' )
7072 const backgroundSurface = useThemeBackground ( 'surface' )
71- const { eventDays } = useCache ( )
73+ const { events , eventDays } = useCache ( )
7274 const initialRouteName = getInitialRoute ( eventDays , now )
7375 const [ filter , setFilter ] = useState ( '' )
7476
@@ -86,6 +88,15 @@ export default function ScheduleLayout() {
8688 }
8789 } , [ eventDays ] )
8890
91+ if ( events . length === 0 )
92+ return (
93+ < ComingSoon
94+ image = { require ( '@/assets/static/events-empty.png' ) }
95+ title = { t ( 'coming_soon_title' ) }
96+ text = { t ( 'coming_soon_body' , { conName } ) }
97+ />
98+ )
99+
89100 return (
90101 < ScheduleSearchContext . Provider
91102 value = { { query : filter , setQuery : setFilter } }
0 commit comments