Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Remove "Set a budget" card
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Aug 21, 2023
1 parent fd06eb5 commit 2544f88
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class CustomerJourneyLogic(
adjustBalanceCard(),
addPlannedPaymentCard(),
didYouKnow_pinAddTransactionWidgetCard(),
addBudgetCard(),
didYouKnow_expensesPieChart(),
rateUsCard(),
shareIvyWalletCard(),
Expand Down Expand Up @@ -114,22 +113,6 @@ class CustomerJourneyLogic(
}
)

fun addBudgetCard() = CustomerJourneyCardData(
id = "add_budget",
condition = { trnCount, _, _ ->
trnCount >= 5
},
title = stringRes(R.string.set_a_budget),
description = stringRes(R.string.set_a_budget_description),
cta = stringRes(R.string.add_budget),
ctaIcon = R.drawable.ic_budget_xs,
background = Gradient.solid(Green2),
hasDismiss = true,
onAction = { navigation, _, _ ->
navigation.navigateTo(BudgetScreen)
}
)

fun didYouKnow_expensesPieChart() = CustomerJourneyCardData(
id = "expenses_pie_chart",
condition = { trnCount, _, _ ->
Expand Down Expand Up @@ -282,18 +265,6 @@ private fun PreviewDidYouKnow_PinAddTransactionWidgetCard() {
}
}

@Preview
@Composable
private fun PreviewAddBudgetCard() {
IvyWalletComponentPreview {
CustomerJourneyCard(
cardData = CustomerJourneyLogic.addBudgetCard(),
onCTA = { },
onDismiss = {}
)
}
}

@Preview
@Composable
private fun PreviewDidYouKnow_ExpensesPieChart() {
Expand Down

0 comments on commit 2544f88

Please sign in to comment.