#59 Added onUsernameChange
This commit is contained in:
		
							parent
							
								
									182b8e2213
								
							
						
					
					
						commit
						57d959a510
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -27,6 +27,9 @@ class SignUpViewModel @Inject constructor(
 | 
			
		|||
    private val password
 | 
			
		||||
        get() = uiState.value.password
 | 
			
		||||
 | 
			
		||||
    fun onUsernameChange(newValue: String) {
 | 
			
		||||
        uiState.value = uiState.value.copy(username = newValue)
 | 
			
		||||
    }
 | 
			
		||||
    fun onEmailChange(newValue: String) {
 | 
			
		||||
        uiState.value = uiState.value.copy(email = newValue)
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue