This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #787 from Vishwa-Raghavendra/AccountScreen
Account screen
- Loading branch information
Showing
15 changed files
with
273 additions
and
145 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/ivy/wallet/ui/accounts/AccountState.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.ivy.wallet.ui.accounts | ||
|
||
import com.ivy.wallet.utils.UiText | ||
|
||
data class AccountState( | ||
val baseCurrency: String = "", | ||
val accountsData: List<AccountData> = emptyList(), | ||
val totalBalanceWithExcluded: Double = 0.0, | ||
val totalBalanceWithExcludedText: UiText = UiText.DynamicString(""), | ||
val reorderVisible: Boolean = false | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/ivy/wallet/ui/accounts/AccountsEvent.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.ivy.wallet.ui.accounts | ||
|
||
import com.ivy.wallet.domain.data.core.Account | ||
|
||
sealed class AccountsEvent { | ||
data class OnReorder(val reorderedList: List<AccountData>) : AccountsEvent() | ||
data class OnEditAccount(val editedAccount: Account, val newBalance: Double) : AccountsEvent() | ||
data class OnReorderModalVisible(val reorderVisible: Boolean) : AccountsEvent() | ||
} |
This file contains 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
Oops, something went wrong.