Skip to content

Commit

Permalink
[CHORE] : onGuestModeButtonClicked() Parameter 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Mar 29, 2024
1 parent bc31171 commit d0b65d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import com.wap.wapp.feature.auth.R.string
@Composable
internal fun SignInContent(
openSignInSheet: () -> Unit,
navigateToNotice: () -> Unit,
onGuestModeButtonClicked: () -> Unit,
modifier: Modifier = Modifier,
) {
val scrollState = rememberScrollState()
Expand Down Expand Up @@ -110,7 +110,7 @@ internal fun SignInContent(
.fillMaxWidth()
.padding(top = 20.dp, bottom = 60.dp),
onClick = {
navigateToNotice()
onGuestModeButtonClicked()
},
colors = ButtonDefaults.elevatedButtonColors(
containerColor = WappTheme.colors.yellow34,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ internal fun SignInRoute(
viewModel.logUserSignedIn()
navigateToNotice()
},
onGuestModeButtonClicked = navigateToNotice
)
}

Expand All @@ -73,6 +74,7 @@ internal fun SignInScreen(
signInUseCase: SignInUseCase,
onSignInSucceed: () -> Unit,
navigateToSignUp: () -> Unit,
onGuestModeButtonClicked: () -> Unit,
) {
val coroutineScope = rememberCoroutineScope()
val scaffoldState = rememberBottomSheetScaffoldState()
Expand Down Expand Up @@ -157,7 +159,7 @@ internal fun SignInScreen(
scaffoldState.bottomSheetState.expand()
}
},
navigateToNotice = { navigateToNotice() },
onGuestModeButtonClicked = { onGuestModeButtonClicked() },
modifier = Modifier.addFocusCleaner(focusManager),
)
}
Expand Down

0 comments on commit d0b65d1

Please sign in to comment.