From 0786e71c6812d30272303fb0ba739ad31f02752d Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Sun, 28 Aug 2022 22:44:05 -0700 Subject: [PATCH] remove topbar from apple auth webview --- .../java/app/omnivore/omnivore/ui/auth/AppleAuth.kt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/ui/auth/AppleAuth.kt b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/ui/auth/AppleAuth.kt index fa8d7cc69..ff9ef3b8b 100644 --- a/android/Omnivore/app/src/main/java/app/omnivore/omnivore/ui/auth/AppleAuth.kt +++ b/android/Omnivore/app/src/main/java/app/omnivore/omnivore/ui/auth/AppleAuth.kt @@ -53,21 +53,11 @@ fun AppleAuthDialog(onDismiss: (String?) -> Unit) { shape = RoundedCornerShape(16.dp), color = Color.White ) { - AppleAuthWebContainerView(onDismiss) + AppleAuthWebView(onDismiss) } } } -@OptIn(ExperimentalMaterial3Api::class) -@SuppressLint("UnusedMaterial3ScaffoldPaddingParameter") -@Composable -fun AppleAuthWebContainerView(onDismiss: (String?) -> Unit) { - Scaffold( - topBar = { TopAppBar(title = { Text("WebView", color = Color.White) }, backgroundColor = Color(0xff0f9d58)) }, - content = { AppleAuthWebView(onDismiss) } - ) -} - @SuppressLint("SetJavaScriptEnabled") @Composable fun AppleAuthWebView(onDismiss: (String?) -> Unit) {