Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve response handling and username / password dialog #39

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

dzolnai
Copy link
Collaborator

@dzolnai dzolnai commented Oct 19, 2023

No description provided.

@@ -42,6 +47,7 @@ fun UsernamePasswordDialog(
var username by remember { mutableStateOf("") }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a Compose FYI, you can also deconstruct the remember into its state and lambda like this:
val (username, onUsernameChange) = remember { mutableStateOf("") }
and then directly use them

 OutlinedTextField(
    value = username,
    onValueChange = onUsernameChange,
)

especially in you don't do anything extra in the onValueChange. I always thought it was kind of neat, never did get to use it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know!

@dzolnai dzolnai merged commit 494d287 into main Oct 19, 2023
1 check passed
@dzolnai dzolnai deleted the feature/organization_fixes branch October 19, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants