-
Notifications
You must be signed in to change notification settings - Fork 669
feat: Share accounts UI #2495
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
feat: Share accounts UI #2495
Conversation
| MifosScaffold( | ||
| title = "Share Accounts", | ||
| onBackPressed = {}, | ||
| ) { paddingValues -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move share Accounts to string Resources and why onBackPressed is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look in figma, thats not the scaffold we will be using, its just here for the time being.
| } | ||
|
|
||
| ShareAccountsUiState.DialogState.Loading -> MifosCircularProgress() | ||
| null -> {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the recent previous prs review conversation it is decided not to place CircularProgressbar inside dialog state
create another internal state and if it is Loading show loader , if success show screen
like in #2491
| ShareAccountsAction.ToggleFiler -> { | ||
| mutableStateFlow.update { | ||
| it.copy( | ||
| isFilterActive = !state.isFilterActive, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create handle functions for each and don't update it in handleaction
use like
is NewLoanAccountAction.DismissDialog -> handleDismissAddCollateralDialog()
private fun handleDismissAddCollateralDialog() {
mutableStateFlow.update { it.copy(dialogState = null) }
}
d04c7c8 to
52dba9e
Compare
7aa9d36 to
a7f0531
Compare
Fixes - https://mifosforge.jira.com/browse/MIFOSAC-574
