Skip to content

Commit

Permalink
Apply new design to buy subscription module
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Dec 26, 2024
1 parent 5538bbb commit 73f98e1
Show file tree
Hide file tree
Showing 23 changed files with 1,009 additions and 1,015 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ fun NavGraphBuilder.composablePage(

fun NavGraphBuilder.composablePopup(
route: String,
arguments: List<NamedNavArgument> = emptyList(),
content: @Composable AnimatedVisibilityScope.(NavBackStackEntry) -> Unit
) {
composable(
route,
arguments = arguments,
enterTransition = {
slideIntoContainer(
AnimatedContentTransitionScope.SlideDirection.Up,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fun NavController.paidAction(paidAction: IPaidAction, block: () -> Unit) {
if (UserSubscriptionManager.isActionAllowed(paidAction)) {
block.invoke()
} else {
slideFromRightForResult<BuySubscriptionFragment.Result>(
slideFromBottomForResult<BuySubscriptionFragment.Result>(
R.id.buySubscriptionFragment,
BuySubscriptionFragment.Input(paidAction)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import io.horizontalsystems.bankwallet.ui.compose.components.VSpacer
import io.horizontalsystems.bankwallet.ui.compose.components.sectionItemBorder
import io.horizontalsystems.bankwallet.ui.compose.components.subhead2_leah
import io.horizontalsystems.marketkit.models.Analytics.TechnicalAdvice.Advice
import io.horizontalsystems.subscriptions.core.EnableWatchlistSignals
import io.horizontalsystems.subscriptions.core.TradeSignals
import kotlinx.parcelize.Parcelize

class MarketSignalsFragment : BaseComposeFragment() {
Expand Down Expand Up @@ -130,7 +130,7 @@ fun MarketSignalsScreen(navController: NavController) {
.padding(start = 16.dp, end = 16.dp),
title = stringResource(R.string.Market_Signal_TurnOn),
onClick = {
navController.paidAction(EnableWatchlistSignals) {
navController.paidAction(TradeSignals) {
navController.setNavigationResultX(MarketSignalsFragment.Result(true))
navController.popBackStack()
}
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 73f98e1

Please sign in to comment.