added notification
This commit is contained in:
@@ -24,9 +24,10 @@ const Payment = ({ packets }: Props) => {
|
||||
|
||||
const handlePaymentPress = useCallback(
|
||||
(item: any) => {
|
||||
const isPaid = item.paymentStatus === 'paid';
|
||||
const isPaid =
|
||||
item.paymentStatus === 'PAYED' || item.paymentStatus === 'PENDING';
|
||||
navigation.navigate(isPaid ? 'PaymentQrCode' : 'PaymentMethod', {
|
||||
packets: item, // tanlangan itemni to‘liq yuboramiz
|
||||
packets: item,
|
||||
});
|
||||
},
|
||||
[navigation],
|
||||
@@ -49,7 +50,8 @@ const Payment = ({ packets }: Props) => {
|
||||
|
||||
const renderPaymentCard = useCallback(
|
||||
(item: any) => {
|
||||
const isPaid = item.paymentStatus === 'paid';
|
||||
const isPaid =
|
||||
item.paymentStatus === 'PAYED' || item.paymentStatus === 'PENDING';
|
||||
const cardStyle = [
|
||||
PaymentStyle.card,
|
||||
{ borderColor: isPaid ? '#4CAF50' : '#D32F2F', borderWidth: 1.5 },
|
||||
|
||||
Reference in New Issue
Block a user