Skip to content

Commit 0a7085a

Browse files
committed
chore: lint
1 parent 7b784cf commit 0a7085a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • app/src/main/java/to/bitkit/ui/screens/widgets/price

app/src/main/java/to/bitkit/ui/screens/widgets/price/PriceCard.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import androidx.compose.foundation.layout.Arrangement
77
import androidx.compose.foundation.layout.Box
88
import androidx.compose.foundation.layout.Column
99
import androidx.compose.foundation.layout.Row
10-
import androidx.compose.foundation.layout.Spacer
1110
import androidx.compose.foundation.layout.fillMaxSize
1211
import androidx.compose.foundation.layout.fillMaxWidth
1312
import androidx.compose.foundation.layout.height
1413
import androidx.compose.foundation.layout.padding
1514
import androidx.compose.foundation.layout.size
16-
import androidx.compose.foundation.layout.width
1715
import androidx.compose.material3.Icon
1816
import androidx.compose.material3.MaterialTheme
1917
import androidx.compose.material3.ShapeDefaults
@@ -50,6 +48,8 @@ import to.bitkit.models.widget.PricePreferences
5048
import to.bitkit.ui.components.BodyMSB
5149
import to.bitkit.ui.components.Caption13Up
5250
import to.bitkit.ui.components.CaptionB
51+
import to.bitkit.ui.components.HorizontalSpacer
52+
import to.bitkit.ui.components.VerticalSpacer
5353
import to.bitkit.ui.theme.AppThemeSurface
5454
import to.bitkit.ui.theme.Colors
5555

@@ -91,7 +91,7 @@ fun PriceCard(
9191
.testTag("price_card_widget_title_icon"),
9292
tint = Color.Unspecified,
9393
)
94-
Spacer(modifier = Modifier.width(16.dp))
94+
HorizontalSpacer(16.dp)
9595
BodyMSB(
9696
text = stringResource(R.string.widgets__price__name),
9797
modifier = Modifier.testTag("price_card_widget_title_text"),
@@ -112,7 +112,7 @@ fun PriceCard(
112112
.weight(1f)
113113
.testTag("PriceWidgetRow-${widgetData.pair.displayName}"),
114114
)
115-
Spacer(modifier = Modifier.width(16.dp))
115+
HorizontalSpacer(16.dp)
116116
Text(
117117
text = widgetData.change.formatted,
118118
color = if (widgetData.change.isPositive) Colors.Green else Colors.Red,
@@ -144,7 +144,7 @@ fun PriceCard(
144144
)
145145

146146
if (pricePreferences.showSource) {
147-
Spacer(modifier = Modifier.height(8.dp))
147+
VerticalSpacer(8.dp)
148148

149149
Row(
150150
horizontalArrangement = Arrangement.SpaceBetween,

0 commit comments

Comments
 (0)