Skip to content

Commit beed4a6

Browse files
committed
Renamed parts of the view to more domain friendly names
1 parent 113db83 commit beed4a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/hub/depositsummary/PaymentsHubDepositSummaryScreen.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ fun PaymentsHubDepositSummaryView(
116116
.fillMaxWidth()
117117
.background(colorResource(id = R.color.color_surface))
118118
) {
119-
AlwaysVisiblePart(selectedCurrencyInfo, isExpanded) { isExpanded = !isExpanded }
119+
FundsOverview(selectedCurrencyInfo, isExpanded) { isExpanded = !isExpanded }
120120

121121
AnimatedVisibility(
122122
visible = isExpanded || isPreview,
123123
modifier = Modifier.fillMaxWidth(),
124124
) {
125-
AdditionInfo(
125+
DepositsInfo(
126126
nextDeposit = selectedCurrencyInfo.nextDeposit,
127127
lastDeposit = selectedCurrencyInfo.lastDeposit,
128128
)
@@ -133,7 +133,7 @@ fun PaymentsHubDepositSummaryView(
133133
}
134134

135135
@Composable
136-
private fun AlwaysVisiblePart(
136+
private fun FundsOverview(
137137
currencyInfo: PaymentsHubDepositSummaryState.Info,
138138
isExpanded: Boolean,
139139
onExpandCollapseClick: () -> Unit,
@@ -242,7 +242,7 @@ private fun AlwaysVisiblePart(
242242
}
243243

244244
@Composable
245-
private fun AdditionInfo(
245+
private fun DepositsInfo(
246246
nextDeposit: PaymentsHubDepositSummaryState.Deposit?,
247247
lastDeposit: PaymentsHubDepositSummaryState.Deposit?,
248248
) {

0 commit comments

Comments
 (0)