Skip to content

Commit

Permalink
sn-2888 referral banner
Browse files Browse the repository at this point in the history
  • Loading branch information
arvifox committed Aug 29, 2023
1 parent b573e37 commit db231c2
Show file tree
Hide file tree
Showing 14 changed files with 900 additions and 79 deletions.
7 changes: 7 additions & 0 deletions common/src/main/java/jp/co/soramitsu/common/domain/CardHub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const val ASSETS_HUB_NAME = "assets"
const val POOLS_HUB_NAME = "pools"
const val GET_SORA_CARD_HUB_NAME = "get sora card"
const val BUY_XOR_TOKEN_HUB_NAME = "buy xor token"
const val REFERRAL_SYSTEM_HUB_NAME = "referral system"

data class CardHub(
val cardType: CardHubType,
Expand All @@ -65,6 +66,12 @@ enum class CardHubType(
boundToAccount = false,
R.string.common_buy_xor,
),
REFERRAL_SYSTEM(
REFERRAL_SYSTEM_HUB_NAME,
order = 2,
boundToAccount = false,
R.string.referral_toolbar_title,
),

ASSETS(ASSETS_HUB_NAME, order = 0, boundToAccount = true, R.string.liquid_assets),
POOLS(POOLS_HUB_NAME, order = 1, boundToAccount = true, R.string.pooled_assets),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ data class SoraCardState(
) : CardState

data class BuyXorState(
val visible: Boolean = false
val visible: Boolean = false,
) : CardState

data class ReferralState(
val visible: Boolean = false,
) : CardState

class FavoritePoolsCardState(
Expand Down
Loading

0 comments on commit db231c2

Please sign in to comment.