diff --git a/app/src/main/kotlin/org/cru/godtools/ui/login/LoginLayout.kt b/app/src/main/kotlin/org/cru/godtools/ui/login/LoginLayout.kt index 9f1bbb38f2..9f7cc1d9fa 100644 --- a/app/src/main/kotlin/org/cru/godtools/ui/login/LoginLayout.kt +++ b/app/src/main/kotlin/org/cru/godtools/ui/login/LoginLayout.kt @@ -51,7 +51,11 @@ private val FACEBOOK_BLUE = Color(red = 0x18, green = 0x77, blue = 0xf2) @Composable @OptIn(ExperimentalMaterial3Api::class) -fun LoginLayout(createAccount: Boolean = false, onEvent: (event: LoginLayoutEvent) -> Unit) { +fun LoginLayout( + modifier: Modifier = Modifier, + createAccount: Boolean = false, + onEvent: (event: LoginLayoutEvent) -> Unit = {}, +) { var loginError: LoginResponse.Error? by rememberSaveable { mutableStateOf(null) } val loginLauncher = rememberLoginLauncher(createAccount) { when (it) { @@ -66,7 +70,7 @@ fun LoginLayout(createAccount: Boolean = false, onEvent: (event: LoginLayoutEven Column( horizontalAlignment = Alignment.CenterHorizontally, - modifier = Modifier + modifier = modifier .fillMaxSize() .background(GodToolsTheme.GT_BLUE) .verticalScroll(rememberScrollState())