@@ -5,30 +5,34 @@ import androidx.annotation.StringRes
55import androidx.compose.ui.graphics.Color
66import to.bitkit.R
77import to.bitkit.ui.theme.Colors
8+ import kotlin.time.Duration
9+ import kotlin.time.Duration.Companion.seconds
810
911enum class Suggestion (
1012 @StringRes val title : Int ,
1113 @StringRes val description : Int ,
1214 @DrawableRes val icon : Int ,
1315 val color : Color ,
16+ val dismissible : Boolean = true ,
17+ val duration : Duration ? = null ,
1418) {
1519 BUY (
1620 title = R .string.cards__buyBitcoin__title,
1721 description = R .string.cards__buyBitcoin__description,
1822 color = Colors .Brand24 ,
19- icon = R .drawable.b_emboss
23+ icon = R .drawable.b_emboss,
2024 ),
2125 LIGHTNING ( // Lightning ready from RN
2226 title = R .string.cards__lightning__title,
2327 description = R .string.cards__lightning__description,
2428 color = Colors .Purple24 ,
25- icon = R .drawable.lightning
29+ icon = R .drawable.lightning,
2630 ),
2731 BACK_UP (
2832 title = R .string.cards__backupSeedPhrase__title,
2933 description = R .string.cards__backupSeedPhrase__description,
3034 color = Colors .Blue24 ,
31- icon = R .drawable.safe
35+ icon = R .drawable.safe,
3236 ),
3337 SECURE (
3438 title = R .string.cards__pin__title,
@@ -72,29 +76,34 @@ enum class Suggestion(
7276 title = R .string.cards__lightningSettingUp__title,
7377 description = R .string.cards__transferPending__description,
7478 color = Colors .Purple24 ,
75- icon = R .drawable.transfer
79+ icon = R .drawable.transfer,
80+ dismissible = false
7681 ),
7782
7883 /* *When the LN channel could not be cooped closed immediately*/
7984 TRANSFER_CLOSING_CHANNEL (
8085 title = R .string.cards__transferClosingChannel__title,
8186 description = R .string.cards__transferClosingChannel__description,
8287 color = Colors .Red24 ,
83- icon = R .drawable.transfer
88+ icon = R .drawable.transfer,
89+ dismissible = false
8490 ),
8591
8692 /* *Replaces LIGHTNING when the transfer to spending balance is in progress*/
8793 LIGHTNING_SETTING_UP (
8894 title = R .string.cards__lightningSettingUp__title,
8995 description = R .string.cards__lightningSettingUp__description,
9096 color = Colors .Purple24 ,
91- icon = R .drawable.transfer
97+ icon = R .drawable.transfer,
98+ dismissible = false
9299 ),
93100 LIGHTNING_READY (
94101 title = R .string.cards__lightningReady__title,
95102 description = R .string.cards__lightningReady__description,
96103 color = Colors .Purple24 ,
97- icon = R .drawable.transfer
104+ icon = R .drawable.transfer,
105+ dismissible = false ,
106+ duration = 5 .seconds
98107 ),
99108}
100109
0 commit comments