Merge pull request #1182 from yogeshpaliyal/coderabbitai/docstrings/eBYFxgLJGRzDRrhhiiHr2L2OO7Z

📝 Add docstrings to `fixCreatePasswordBug`
This commit is contained in:
Yogesh Choudhary Paliyal
2025-04-26 15:32:06 +05:30
committed by GitHub

View File

@@ -30,6 +30,13 @@ import com.yogeshpaliyal.keypass.ui.redux.actions.NavigationAction
import com.yogeshpaliyal.keypass.ui.redux.states.AuthState
import org.reduxkotlin.compose.rememberDispatcher
/**
* Displays the authentication screen and manages user input and navigation based on the current authentication state.
*
* Renders the appropriate UI for login, password creation, or password confirmation, handling state transitions, input validation, and navigation actions according to the provided [state].
*
* @param state The current authentication state determining which UI and logic to display.
*/
@Composable
fun AuthScreen(state: AuthState) {
val userSettings = LocalUserSettings.current