@@ -65,7 +65,7 @@ fun WooPosItemsScreen(
6565 WooPosItemsScreen (
6666 modifier = modifier,
6767 itemsStateFlow = productsViewModel.viewState,
68- catalogSyncBannerStateFlow = productsViewModel.catalogSyncBannerState ,
68+ catalogSyncOverdueBannerStateFlow = productsViewModel.catalogSyncOverdueBannerState ,
6969 productsViewState = productsViewState,
7070 couponsListState = couponsListState,
7171 catalogSyncState = catalogSyncState,
@@ -79,15 +79,15 @@ fun WooPosItemsScreen(
7979private fun WooPosItemsScreen (
8080 modifier : Modifier = Modifier ,
8181 itemsStateFlow : StateFlow <WooPosItemsToolbarViewState >,
82- catalogSyncBannerStateFlow : StateFlow <WooPosItemsViewModel .CatalogSyncBannerState >,
82+ catalogSyncOverdueBannerStateFlow : StateFlow <WooPosItemsViewModel .CatalogSyncOverdueBannerState >,
8383 productsViewState : LazyListState ,
8484 couponsListState : LazyListState ,
8585 catalogSyncState : CatalogSyncState ,
8686 onRetryCatalogSync : () -> Unit ,
8787 onUIEvent : (WooPosItemsUIEvent ) -> Unit ,
8888) {
8989 val state = itemsStateFlow.collectAsState()
90- val catalogSyncOverdueBannerState = catalogSyncBannerStateFlow .collectAsState()
90+ val catalogSyncOverdueBannerState = catalogSyncOverdueBannerStateFlow .collectAsState()
9191
9292 MainItemsList (
9393 modifier = modifier,
@@ -125,7 +125,7 @@ private fun WooPosItemsScreen(
125125private fun MainItemsList (
126126 modifier : Modifier ,
127127 state : State <WooPosItemsToolbarViewState >,
128- bannerState : State <WooPosItemsViewModel .CatalogSyncBannerState >,
128+ bannerState : State <WooPosItemsViewModel .CatalogSyncOverdueBannerState >,
129129 productsViewState : LazyListState ,
130130 couponsListState : LazyListState ,
131131 catalogSyncState : CatalogSyncState ,
@@ -159,7 +159,7 @@ private fun MainItemsList(
159159 )
160160
161161 WooPosCatalogSyncOverdueBanner (
162- bannerState = bannerState.value,
162+ state = bannerState.value,
163163 onDismiss = onSyncWarningBannerDismissed
164164 )
165165
@@ -324,12 +324,12 @@ fun WooPosItemsScreenSearchVisiblePreview(modifier: Modifier = Modifier) {
324324 tabs = tabs()
325325 )
326326 )
327- val bannerState = MutableStateFlow (WooPosItemsViewModel .CatalogSyncBannerState . OverdueSyncWarning )
327+ val bannerState = MutableStateFlow (WooPosItemsViewModel .CatalogSyncOverdueBannerState . Visible )
328328 WooPosTheme {
329329 WooPosItemsScreen (
330330 modifier = modifier,
331331 itemsStateFlow = productState,
332- catalogSyncBannerStateFlow = bannerState,
332+ catalogSyncOverdueBannerStateFlow = bannerState,
333333 productsViewState = rememberLazyListState(),
334334 couponsListState = rememberLazyListState(),
335335 catalogSyncState = CatalogSyncState .Idle ,
@@ -354,12 +354,12 @@ fun WooPosItemsScreenSearchHiddenPreview(modifier: Modifier = Modifier) {
354354 tabs = tabs()
355355 )
356356 )
357- val bannerState = MutableStateFlow (WooPosItemsViewModel .CatalogSyncBannerState . OverdueSyncWarning )
357+ val bannerState = MutableStateFlow (WooPosItemsViewModel .CatalogSyncOverdueBannerState . Visible )
358358 WooPosTheme {
359359 WooPosItemsScreen (
360360 modifier = modifier,
361361 itemsStateFlow = productState,
362- catalogSyncBannerStateFlow = bannerState,
362+ catalogSyncOverdueBannerStateFlow = bannerState,
363363 productsViewState = rememberLazyListState(),
364364 couponsListState = rememberLazyListState(),
365365 catalogSyncState = CatalogSyncState .Idle ,
0 commit comments