Skip to content

Commit

Permalink
Have the button "next" navigate to the next screen not "camera"
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 21, 2024
1 parent b7eaa45 commit 46e30fc
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@ fun ImportFilesScreen(navigateToTransferTypeScreen: () -> Unit) {
LargeButton(
modifier = modifier,
titleRes = R.string.buttonNext,
onClick = { /*TODO*/ },
onClick = { navigateToTransferTypeScreen() },
)
},
) {
Column {
UploadSourceChoiceBottomSheet(
isBottomSheetVisible = { showUploadSourceChoiceBottomSheet },
onDismissRequest = { showUploadSourceChoiceBottomSheet = false },
onCameraClicked = { navigateToTransferTypeScreen() }
)
}
}
Expand All @@ -77,15 +76,14 @@ fun ImportFilesScreen(navigateToTransferTypeScreen: () -> Unit) {
private fun UploadSourceChoiceBottomSheet(
isBottomSheetVisible: () -> Boolean,
onDismissRequest: () -> Unit,
onCameraClicked: () -> Unit,
) {
if (isBottomSheetVisible()) {
SwissTransferBottomSheet(
onDismissRequest = onDismissRequest,
titleRes = R.string.transferUploadSourceChoiceTitle,
content = {
Column {
BottomSheetItem(AppIcons.Camera, R.string.transferUploadSourceChoiceCamera, onClick = onCameraClicked)
BottomSheetItem(AppIcons.Camera, R.string.transferUploadSourceChoiceCamera) { /*TODO*/ }
HorizontalDivider(Modifier.padding(horizontal = Margin.Medium))
BottomSheetItem(AppIcons.PolaroidLandscape, R.string.transferUploadSourceChoiceGallery) { /*TODO*/ }
HorizontalDivider(Modifier.padding(horizontal = Margin.Medium))
Expand All @@ -111,7 +109,7 @@ private fun ImportFilesScreenPreview() {
private fun ImportChoiceBottomSheetPreview() {
SwissTransferTheme {
Surface {
UploadSourceChoiceBottomSheet({ true }, {}, {})
UploadSourceChoiceBottomSheet({ true }, {})
}
}
}

0 comments on commit 46e30fc

Please sign in to comment.