Skip to content

Commit ff12ae8

Browse files
Added a bit of logic to close the bottomSheet when saving information
1 parent 3f3f5bc commit ff12ae8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/shop/ShopAddressView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const ShopAddressView = () => {
3434
country !== ''
3535
) {
3636
Alert.alert('Address saved successfully!');
37+
uiStore.closeBottomSheet();
3738
} else {
3839
Alert.alert('Information missing.');
3940
}

src/components/shop/ShopPaymentView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const ShopPaymentView = () => {
2222
const onPressSave = () => {
2323
if (cardNumber && expirationDate && securityCode && name !== '') {
2424
Alert.alert('Card saved successfully!');
25+
uiStore.closeBottomSheet();
2526
} else {
2627
Alert.alert('Information missing.');
2728
}

0 commit comments

Comments
 (0)