Created
July 31, 2022 18:39
-
-
Save motorro/c7596cc1c3beac2cd954574dc6cf552c to your computer and use it in GitHub Desktop.
UI-state renderer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class LoginRenderer { | |
/** | |
* Renders password form | |
*/ | |
fun renderPassword( | |
data: LoginDataState, | |
isValid: Boolean | |
): LoginUiState.PasswordEntry = LoginUiState.PasswordEntry( | |
data.email, | |
data.password.orEmpty(), | |
isValid | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment