Skip to content

Commit

Permalink
Enable ton-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Nov 28, 2024
1 parent f0c641a commit 257dab3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import io.horizontalsystems.bankwallet.modules.coin.CoinFragment
import io.horizontalsystems.bankwallet.modules.main.MainModule.MainNavigation
import io.horizontalsystems.bankwallet.modules.market.topplatforms.Platform
import io.horizontalsystems.bankwallet.modules.nft.collection.NftCollectionFragment
import io.horizontalsystems.bankwallet.modules.tonconnect.TonConnectMainFragment
import io.horizontalsystems.bankwallet.modules.walletconnect.WCManager
import io.horizontalsystems.bankwallet.modules.walletconnect.WCSessionManager
import io.horizontalsystems.bankwallet.modules.walletconnect.list.WCListFragment
Expand Down Expand Up @@ -327,10 +328,10 @@ class MainViewModel(
}
}

// deeplinkString.startsWith("tc:") -> {
// deeplinkPage = DeeplinkPage(R.id.tcListFragment, TonConnectMainFragment.Input(deeplinkString))
// tab = MainNavigation.Settings
// }
deeplinkString.startsWith("tc:") -> {
deeplinkPage = DeeplinkPage(R.id.tcListFragment, TonConnectMainFragment.Input(deeplinkString))
tab = MainNavigation.Settings
}

deeplinkString.startsWith("https://unstoppable.money/referral") -> {
val userId: String? = deepLink.getQueryParameter("userId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,21 +184,21 @@ private fun SettingSections(
}
}
)
// }, {
// HsSettingCell(
// title = R.string.Settings_TonConnect,
// icon = R.drawable.ic_ton_connect_24,
// value = null,
// counterBadge = null,
// onClick = {
// navController.slideFromRight(R.id.tcListFragment)
//
// stat(
// page = StatPage.Settings,
// event = StatEvent.Open(StatPage.TonConnect)
// )
// }
// )
}, {
HsSettingCell(
title = R.string.Settings_TonConnect,
icon = R.drawable.ic_ton_connect_24,
value = null,
counterBadge = null,
onClick = {
navController.slideFromRight(R.id.tcListFragment)

stat(
page = StatPage.Settings,
event = StatEvent.Open(StatPage.TonConnect)
)
}
)
}, {
HsSettingCell(
R.string.BackupManager_Title,
Expand Down

0 comments on commit 257dab3

Please sign in to comment.