Skip to content

Commit 5a6eb4c

Browse files
jvsena42claude
andcommitted
fix: lint wrapping and indentation issues
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c36bcf0 commit 5a6eb4c

2 files changed

Lines changed: 30 additions & 16 deletions

File tree

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

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,37 +121,53 @@ fun BalanceHeaderView(
121121
@Composable
122122
fun BalanceHeader(
123123
isBitcoinPrimary: Boolean,
124-
smallRowSymbol: String? = null,
125124
smallRowText: String,
125+
largeRowText: String,
126+
largeRowSymbol: String,
127+
showSymbol: Boolean,
128+
onClick: () -> Unit,
129+
modifier: Modifier = Modifier,
130+
smallRowSymbol: String? = null,
126131
smallRowIsSymbolSuffix: Boolean = false,
127132
smallRowModifier: Modifier = Modifier,
128133
largeRowPrefix: String? = null,
129-
largeRowText: String,
130-
largeRowSymbol: String,
131134
largeRowIsSymbolSuffix: Boolean = false,
132135
largeRowModifier: Modifier = Modifier,
133-
showSymbol: Boolean,
134136
hideBalance: Boolean = false,
135137
isSwipeToHideEnabled: Boolean = false,
136138
showEyeIcon: Boolean = false,
137-
onClick: () -> Unit,
138139
onToggleHideBalance: () -> Unit = {},
139140
testTag: String? = null,
140-
modifier: Modifier = Modifier,
141141
) {
142142
val smallRowState = remember(
143-
isBitcoinPrimary, smallRowSymbol, smallRowText, smallRowIsSymbolSuffix,
143+
isBitcoinPrimary,
144+
smallRowSymbol,
145+
smallRowText,
146+
smallRowIsSymbolSuffix,
144147
) {
145-
SmallRowState(isBitcoinPrimary, smallRowSymbol, smallRowText, smallRowIsSymbolSuffix)
148+
SmallRowState(
149+
isBitcoinPrimary,
150+
smallRowSymbol,
151+
smallRowText,
152+
smallRowIsSymbolSuffix,
153+
)
146154
}
147155

148156
val largeRowState = remember(
149-
isBitcoinPrimary, largeRowPrefix, largeRowText, largeRowSymbol,
150-
largeRowIsSymbolSuffix, showSymbol,
157+
isBitcoinPrimary,
158+
largeRowPrefix,
159+
largeRowText,
160+
largeRowSymbol,
161+
largeRowIsSymbolSuffix,
162+
showSymbol,
151163
) {
152164
LargeRowState(
153-
isBitcoinPrimary, largeRowPrefix, largeRowText, largeRowSymbol,
154-
largeRowIsSymbolSuffix, showSymbol,
165+
isBitcoinPrimary,
166+
largeRowPrefix,
167+
largeRowText,
168+
largeRowSymbol,
169+
largeRowIsSymbolSuffix,
170+
showSymbol,
155171
)
156172
}
157173

app/src/main/java/to/bitkit/ui/shared/animations/BalanceAnimations.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ object BalanceAnimations {
103103
* Matches iOS: .move(edge: .bottom) + .opacity + .scale(1.5, anchor: .topLeading)
104104
* Enter from below, exit to below, with spring physics.
105105
*/
106-
val swapSmallRowTransition: ContentTransform = (
106+
val swapSmallRowTransition: ContentTransform =
107107
slideInVertically(
108108
initialOffsetY = { it },
109109
animationSpec = swapSpring,
@@ -115,14 +115,13 @@ object BalanceAnimations {
115115
) + fadeOut(
116116
animationSpec = swapFadeSpring,
117117
)
118-
)
119118

120119
/**
121120
* Swap transition for the large row (bottom).
122121
* Matches iOS: .move(edge: .top) + .opacity + .scale(0.5, anchor: .topLeading)
123122
* Enter from above, exit to above, with spring physics.
124123
*/
125-
val swapLargeRowTransition: ContentTransform = (
124+
val swapLargeRowTransition: ContentTransform =
126125
slideInVertically(
127126
initialOffsetY = { -it },
128127
animationSpec = swapSpring,
@@ -134,7 +133,6 @@ object BalanceAnimations {
134133
) + fadeOut(
135134
animationSpec = swapFadeSpring,
136135
)
137-
)
138136

139137
/**
140138
* Eye icon transition

0 commit comments

Comments
 (0)