Skip to content

Commit 389100e

Browse files
committed
feat: disable glow
1 parent 0c669fd commit 389100e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

app/src/main/java/to/bitkit/ui/components/SuggestionCard.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fun SuggestionCard(
5555
onClose: (() -> Unit)? = null,
5656
duration: Duration? = null,
5757
size: Int = 152,
58+
disableGlow: Boolean = false,
5859
captionColor: Color = Colors.White64,
5960
onClick: () -> Unit,
6061
) {
@@ -84,7 +85,7 @@ fun SuggestionCard(
8485
.size(size.dp)
8586
.clip(ShapeDefaults.Large)
8687
.then(
87-
if (isDismissible) {
88+
if (isDismissible || disableGlow) {
8889
Modifier.gradientLinearBackground(gradientColor)
8990
} else {
9091
Modifier

app/src/main/java/to/bitkit/ui/screens/shop/shopDiscover/ShopDiscoverScreen.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ import to.bitkit.ui.theme.Colors
5555
import to.bitkit.ui.theme.Shapes
5656
import to.bitkit.ui.utils.configureForBasicWebContent
5757

58+
private const val SHOP_CARD_SIZE = 164
59+
5860
@OptIn(ExperimentalMaterial3Api::class)
5961
@Composable
6062
fun ShopDiscoverScreen(
@@ -127,7 +129,8 @@ private fun ShopTabContent(
127129
description = stringResource(R.string.other__shop__discover__gift_cards__description),
128130
icon = R.drawable.gift,
129131
captionColor = Colors.Gray1,
130-
size = 164,
132+
size = SHOP_CARD_SIZE,
133+
disableGlow = true,
131134
onClick = {
132135
navigateWebView("gift-cards", title)
133136
},
@@ -140,7 +143,8 @@ private fun ShopTabContent(
140143
description = stringResource(R.string.other__shop__discover__esims__description),
141144
icon = R.drawable.globe,
142145
captionColor = Colors.Gray1,
143-
size = 164,
146+
size = SHOP_CARD_SIZE,
147+
disableGlow = true,
144148
onClick = {
145149
navigateWebView("esims", title2)
146150
},
@@ -160,7 +164,8 @@ private fun ShopTabContent(
160164
description = stringResource(R.string.other__shop__discover__refill__description),
161165
icon = R.drawable.phone,
162166
captionColor = Colors.Gray1,
163-
size = 164,
167+
size = SHOP_CARD_SIZE,
168+
disableGlow = true,
164169
onClick = {
165170
navigateWebView("refill", title)
166171
},
@@ -172,7 +177,8 @@ private fun ShopTabContent(
172177
title = title2,
173178
description = stringResource(R.string.other__shop__discover__travel__description),
174179
icon = R.drawable.rocket_2,
175-
size = 164,
180+
size = SHOP_CARD_SIZE,
181+
disableGlow = true,
176182
captionColor = Colors.Gray1,
177183
onClick = {
178184
navigateWebView("buy/travel", title2)

0 commit comments

Comments
 (0)