Commit 9f3844dd by G

remove the wrapper around the image. the styling of the container will be left…

remove the wrapper around the image. the styling of the container will be left to the component that need to render it
parent e9206a1d
......@@ -27,45 +27,24 @@ const PaymentOptionContainer = ({ children }: { children: React.ReactNode }) =>
const Orange = () => {
return (
<PaymentOptionContainer>
<Image
source={require("../../assets/operators/orange_money.png")}
style={images.cover}
/>
</PaymentOptionContainer>
<Image source={require("../../assets/operators/orange_money.png")} style={images.cover} />
);
};
const Mtn = () => {
return (
<PaymentOptionContainer>
<Image source={require("../../assets/operators/mtn_money.png")} style={images.cover} />
</PaymentOptionContainer>
);
return <Image source={require("../../assets/operators/mtn_money.png")} style={images.cover} />;
};
const Flooz = () => {
return (
<PaymentOptionContainer>
<Image source={require("../../assets/operators/moov_money.png")} style={images.cover} />
</PaymentOptionContainer>
);
return <Image source={require("../../assets/operators/moov_money.png")} style={images.cover} />;
};
const Wave = () => {
return (
<PaymentOptionContainer>
<Image source={require("../../assets/operators/wave_money.png")} style={images.cover} />
</PaymentOptionContainer>
);
return <Image source={require("../../assets/operators/wave_money.png")} style={images.cover} />;
};
const Cb = () => {
return (
<PaymentOptionContainer>
<Image source={require("../../assets/operators/visa_card.png")} style={images.cover} />
</PaymentOptionContainer>
);
return <Image source={require("../../assets/operators/visa_card.png")} style={images.cover} />;
};
const PaymentOption = ({ onPress, paymentMethod }: Props) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment