Updated on 2026-08-14
This commit is contained in:
parent
228c0c8af4
commit
82fa3edf45
18 changed files with 97 additions and 61 deletions
|
|
@ -3,6 +3,7 @@ package com.tangem.features.onboarding.v2.multiwallet.impl.child.seedphrase.mode
|
|||
import androidx.compose.runtime.Stable
|
||||
import arrow.core.getOrElse
|
||||
import com.tangem.common.CompletionResult
|
||||
import com.tangem.common.TangemBlogUrlBuilder
|
||||
import com.tangem.common.core.TangemSdkError
|
||||
import com.tangem.core.analytics.api.AnalyticsEventHandler
|
||||
import com.tangem.core.analytics.models.AnalyticsParam
|
||||
|
|
@ -161,7 +162,11 @@ internal class MultiWalletSeedPhraseModel @Inject constructor(
|
|||
openGeneratedSeedPhrase()
|
||||
},
|
||||
onLearnMoreClicked = {
|
||||
urlOpener.openUrl(seedPhraseLearnMoreUrl())
|
||||
modelScope.launch {
|
||||
urlOpener.openUrl(
|
||||
TangemBlogUrlBuilder.build(TangemBlogUrlBuilder.Post.SeedPhraseRiskySolution),
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
package com.tangem.features.onboarding.v2.multiwallet.impl.child.seedphrase.model
|
||||
|
||||
import android.net.Uri
|
||||
import com.tangem.utils.SupportedLanguages
|
||||
import java.util.Locale
|
||||
|
||||
// TODO: [REDACTED_JIRA]
|
||||
internal fun seedPhraseLearnMoreUrl(): String {
|
||||
val language = Locale.getDefault().language
|
||||
|
||||
val languageBy = "by"
|
||||
if (SupportedLanguages.RUSSIAN.equals(language, true) ||
|
||||
languageBy.equals(language, true)
|
||||
) {
|
||||
SupportedLanguages.RUSSIAN
|
||||
} else {
|
||||
SupportedLanguages.ENGLISH
|
||||
}
|
||||
|
||||
val webUri = Uri.Builder()
|
||||
.scheme("https")
|
||||
.authority("tangem.com")
|
||||
.appendPath(language)
|
||||
.appendPath("blog/post/seed-phrase-a-risky-solution")
|
||||
.build()
|
||||
|
||||
return webUri.toString()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue