Skip to content

Commit

Permalink
Updated misc
Browse files Browse the repository at this point in the history
  • Loading branch information
tohrxyz committed Jan 17, 2023
1 parent 2be178b commit 8445a87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package xyz.tomashrib.zephyruswallet.ui.wallet

import android.annotation.SuppressLint
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
Expand Down Expand Up @@ -69,13 +70,13 @@ internal class WalletViewModel() : ViewModel() {
}
}

@SuppressLint("UnrememberedMutableState")
@Composable
internal fun HomeScreen(
navController: NavController,
context: Context,
walletViewModel: WalletViewModel = viewModel()
) {

//complete list of all transaction associated with current wallet
val allTransactions: List<TransactionDetails> = Wallet.getTransactions()

Expand All @@ -90,6 +91,9 @@ internal fun HomeScreen(
Wallet.createBlockchain()
}

// walletViewModel.updateBalance()
// Toast.makeText(context, "Wallet is syncing...", Toast.LENGTH_SHORT).show()

Column(
modifier = Modifier
.fillMaxSize()
Expand Down Expand Up @@ -283,7 +287,10 @@ internal fun HomeScreen(

//receive button
Button(
onClick = { navController.navigate(Screen.ReceiveScreen.route) },
onClick = {
navController.navigate(Screen.ReceiveScreen.route)
Toast.makeText(context, "Generating new address for you...", Toast.LENGTH_SHORT).show()
},
colors = ButtonDefaults.buttonColors(ZephyrusColors.lightPurplePrimary),
shape = RoundedCornerShape(10.dp),
modifier = Modifier
Expand Down

0 comments on commit 8445a87

Please sign in to comment.