From 100110352c34d777ad65a52e8ca983b05c7aee05 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 8 May 2024 12:18:13 +0000 Subject: [PATCH] use interface PaymentCode from request module for code coverage --- src/components/PaymentOption.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/PaymentOption.tsx b/src/components/PaymentOption.tsx index daf325d..9013aa5 100644 --- a/src/components/PaymentOption.tsx +++ b/src/components/PaymentOption.tsx @@ -1,12 +1,13 @@ +import type { PaymentCode } from "@/utils/requests/Types"; import { images } from "@styles/Commons"; import { Image, TouchableOpacity } from "react-native"; import Box from "./bases/Box"; -type PaymentOptions = "ORANGE" | "MTN" | "FLOOZ" | "WAVE" | "CB"; +type PaymentOptions = "OM" | "MTN" | "FLOOZ" | "WAVE" | "CB"; type Props = { onPress: () => void; - paymentMethod: PaymentOptions; + paymentMethod: PaymentCode; }; const PaymentOptionContainer = ({ children }: { children: React.ReactNode }) => { @@ -70,7 +71,7 @@ const Cb = () => { const PaymentOption = ({ onPress, paymentMethod }: Props) => { return ( - {paymentMethod === "ORANGE" && } + {paymentMethod === "OM" && } {paymentMethod === "MTN" && } {paymentMethod === "FLOOZ" && } {paymentMethod === "WAVE" && } -- libgit2 0.27.1