Use common compose qr screen for usernames.

This commit is contained in:
Michelle Tang
2024-06-07 09:15:21 -07:00
committed by Alex Hart
parent df19c91ae2
commit 7bd5ad8c0b
3 changed files with 9 additions and 108 deletions

View File

@@ -46,7 +46,7 @@ object QrScanScreens {
update: (QrScannerView) -> Unit = NoOpUpdate,
hasPermission: Boolean,
onRequestPermissions: () -> Unit = {},
qrString: String,
qrHeaderLabelString: String,
onGalleryOpened: () -> Unit = {}
) {
val path = remember { Path() }
@@ -97,7 +97,7 @@ object QrScanScreens {
}
} else {
Text(
text = qrString,
text = qrHeaderLabelString,
style = MaterialTheme.typography.bodyMedium,
color = Color.White,
textAlign = TextAlign.Center,