Skip to content

Commit 1edfcc6

Browse files
committed
chore: lint
1 parent 1d074bd commit 1edfcc6

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

app/src/main/java/to/bitkit/ui/screens/widgets/calculator/components/CalculatorCard.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ fun CalculatorCardContent(
129129

130130
// Fiat input with decimal transformation
131131
CalculatorInput(
132-
modifier = Modifier
133-
.fillMaxWidth()
134-
.onFocusChanged { focusState -> if (focusState.hasFocus) onFiatChange("") },
135132
value = fiatValue,
136133
onValueChange = onFiatChange,
137134
currencySymbol = fiatSymbol,
138135
currencyName = fiatName,
139-
visualTransformation = MonetaryVisualTransformation(decimalPlaces = 2)
136+
visualTransformation = MonetaryVisualTransformation(decimalPlaces = 2),
137+
modifier = Modifier
138+
.fillMaxWidth()
139+
.onFocusChanged { focusState -> if (focusState.hasFocus) onFiatChange("") }
140140
)
141141
}
142142
}

app/src/main/java/to/bitkit/ui/screens/widgets/calculator/components/CalculatorInput.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ fun CalculatorInput(
3939
onValueChange = onValueChange,
4040
leadingIcon = {
4141
Box(
42+
contentAlignment = Alignment.Center,
4243
modifier = Modifier
4344
.background(color = Colors.Gray6, shape = CircleShape)
44-
.size(32.dp),
45-
contentAlignment = Alignment.Center
45+
.size(32.dp)
4646
) {
4747
BodyMSB(currencySymbol, color = Colors.Brand)
4848
}
@@ -55,8 +55,8 @@ fun CalculatorInput(
5555
focusedContainerColor = Colors.Black,
5656
unfocusedContainerColor = Colors.Black
5757
),
58-
modifier = modifier,
59-
visualTransformation = visualTransformation
58+
visualTransformation = visualTransformation,
59+
modifier = modifier
6060
)
6161
}
6262

@@ -71,18 +71,18 @@ private fun Preview() {
7171
.padding(16.dp)
7272
) {
7373
CalculatorInput(
74-
modifier = Modifier.fillMaxWidth(),
7574
value = "100000",
7675
onValueChange = {},
7776
currencySymbol = "",
78-
currencyName = "BITCOIN"
77+
currencyName = "BITCOIN",
78+
modifier = Modifier.fillMaxWidth()
7979
)
8080
CalculatorInput(
81-
modifier = Modifier.fillMaxWidth(),
8281
value = "4.55",
8382
onValueChange = {},
8483
currencySymbol = "$",
85-
currencyName = "USD"
84+
currencyName = "USD",
85+
modifier = Modifier.fillMaxWidth()
8686
)
8787
}
8888
}

0 commit comments

Comments
 (0)