|
|
@ -38,8 +38,8 @@ fun InfoScreen(
|
|
|
|
subtitleText: String,
|
|
|
|
subtitleText: String,
|
|
|
|
acceptText: String,
|
|
|
|
acceptText: String,
|
|
|
|
onAcceptClick: () -> Unit,
|
|
|
|
onAcceptClick: () -> Unit,
|
|
|
|
rejectText: String,
|
|
|
|
rejectText: String? = null,
|
|
|
|
onRejectClick: () -> Unit,
|
|
|
|
onRejectClick: (() -> Unit)? = null,
|
|
|
|
content: @Composable ColumnScope.() -> Unit,
|
|
|
|
content: @Composable ColumnScope.() -> Unit,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
Scaffold(
|
|
|
|
Scaffold(
|
|
|
@ -69,11 +69,13 @@ fun InfoScreen(
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
Text(text = acceptText)
|
|
|
|
Text(text = acceptText)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
OutlinedButton(
|
|
|
|
if (rejectText != null && onRejectClick != null) {
|
|
|
|
modifier = Modifier.fillMaxWidth(),
|
|
|
|
OutlinedButton(
|
|
|
|
onClick = onRejectClick,
|
|
|
|
modifier = Modifier.fillMaxWidth(),
|
|
|
|
) {
|
|
|
|
onClick = onRejectClick,
|
|
|
|
Text(text = rejectText)
|
|
|
|
) {
|
|
|
|
|
|
|
|
Text(text = rejectText)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|