Skip to content

Commit 0217a56

Browse files
committed
Update "Add package" button text on the Saved screen
The text on the "Add package" button in the `WooShippingSavedPackageScreen` is updated to display "Select a Package" when the button is disabled.
1 parent 92ba883 commit 0217a56

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/packages/ui/WooShippingSavedPackageScreen.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ fun WooShippingSavedPackageScreen(
103103
enabled = isAddPackageEnabled,
104104
onClick = onAddPackageClick
105105
) {
106-
Text(stringResource(id = R.string.woo_shipping_labels_package_creation_add_package))
106+
Text(
107+
stringResource(
108+
id = if (isAddPackageEnabled) {
109+
R.string.woo_shipping_labels_package_creation_add_package
110+
} else {
111+
R.string.shipping_label_select_package_button
112+
}
113+
)
114+
)
107115
}
108116
}
109117
}

0 commit comments

Comments
 (0)