Skip to content

Commit 24c687c

Browse files
committed
chore: update doc comments
1 parent 58145d6 commit 24c687c

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

auth/src/main/java/com/firebase/ui/auth/compose/ui/components/AuthTextField.kt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,19 @@ import com.firebase.ui.auth.compose.configuration.validators.PasswordValidator
3939
*
4040
* **Example usage:**
4141
* ```kotlin
42+
* val emailTextValue = remember { mutableStateOf("") }
43+
*
44+
* val emailValidator = remember {
45+
* EmailValidator(stringProvider = DefaultAuthUIStringProvider(context))
46+
* }
47+
*
4248
* AuthTextField(
43-
* value = email,
44-
* onValueChange = { email = it },
45-
* label = "Email",
46-
* validator = EmailValidator()
49+
* value = emailTextValue,
50+
* onValueChange = { emailTextValue.value = it },
51+
* label = {
52+
* Text("Email")
53+
* },
54+
* validator = emailValidator
4755
* )
4856
* ```
4957
*

auth/src/main/java/com/firebase/ui/auth/compose/ui/method_picker/AuthMethodPicker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import com.firebase.ui.auth.compose.ui.components.AuthProviderButton
2929
* ```kotlin
3030
* AuthMethodPicker(
3131
* providers = listOf(
32-
* AuthProvider.Google(),
33-
* AuthProvider.Email(),
32+
* AuthProvider.Google(),
33+
* AuthProvider.Email(),
3434
* ),
3535
* onProviderSelected = { provider -> /* ... */ }
3636
* )

0 commit comments

Comments
 (0)