@@ -50,6 +50,7 @@ import cafe.adriel.voyager.hilt.getViewModel
5050import com.flipcash.app.core.NavScreenProvider
5151import com.flipcash.app.core.android.extensions.launchAppSettings
5252import com.flipcash.features.login.R
53+ import com.getcode.manager.BottomBarAction
5354import com.getcode.manager.BottomBarManager
5455import com.getcode.manager.TopBarManager
5556import com.getcode.navigation.core.LocalCodeNavigator
@@ -220,12 +221,16 @@ internal fun AccessKeyScreenContent(viewModel: LoginAccessKeyViewModel, onComple
220221 subtitle = context
221222 .getString(R .string.prompt_description_wroteThemDown),
222223 showScrim = true ,
223- positiveText = context
224- .getString(R .string.action_yesWroteThemDown),
225- negativeText = " " ,
226- tertiaryText = context.getString(R .string.action_cancel),
227- onPositive = { onSkipClick() },
228- onNegative = {}
224+ showCancel = true ,
225+ actions = listOf (
226+ BottomBarAction (
227+ text = context
228+ .getString(R .string.action_wroteThemDownInstead)
229+ ) {
230+ onSkipClick()
231+
232+ }
233+ )
229234 )
230235 )
231236 },
@@ -300,12 +305,17 @@ internal fun AccessKeyScreenContent(viewModel: LoginAccessKeyViewModel, onComple
300305 subtitle = context
301306 .getString(R .string.prompt_description_exitAccountCreation),
302307 showScrim = true ,
303- positiveText = context.getString(R .string.action_exit),
304- negativeText = " " ,
305- tertiaryText = context.getString(R .string.action_cancel),
306- onPositive = { navigator.replaceAll(ScreenRegistry .get(NavScreenProvider .Login .Home ())) },
308+ showCancel = true ,
309+ actions = listOf (
310+ BottomBarAction (
311+ text = context
312+ .getString(R .string.action_exit)
313+ ) {
314+ navigator.replaceAll(ScreenRegistry .get(NavScreenProvider .Login .Home ()))
315+
316+ }
317+ ),
307318 type = BottomBarManager .BottomBarMessageType .DESTRUCTIVE ,
308- onNegative = {}
309319 )
310320 )
311321 }
0 commit comments