diff --git a/src/components/modules/ModuleCheckout.tsx b/src/components/modules/ModuleCheckout.tsx index 58ff294e..b105784c 100644 --- a/src/components/modules/ModuleCheckout.tsx +++ b/src/components/modules/ModuleCheckout.tsx @@ -41,13 +41,11 @@ type BaseProps = { export type ModuleCheckoutProps = LoadingProps | BaseProps; -type ActionOnlyProps = { text?: string }; - export const ModuleCheckout = (props: ModuleCheckoutProps) => { const theme = useIOTheme(); if (props.isLoading) { - return ; + return ; } const { paymentLogo, image } = props; @@ -87,7 +85,7 @@ export const ModuleCheckout = (props: ModuleCheckoutProps) => { return ( - {props.ctaText && } + {props.ctaText && } ); } @@ -99,17 +97,17 @@ export const ModuleCheckout = (props: ModuleCheckoutProps) => { ); }; -const ModuleAction = ({ text }: ActionOnlyProps) => ( +const ModuleAction = ({ ctaText }: Pick) => ( null} /> ); -const LoadingVersion = ({ text }: ActionOnlyProps) => ( +const LoadingVersion = ({ ctaText }: LoadingProps) => ( @@ -120,7 +118,7 @@ const LoadingVersion = ({ text }: ActionOnlyProps) => ( - + );