Skip to content

Commit

Permalink
deleted commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertschuler committed Dec 7, 2023
1 parent 1966965 commit de0c599
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions src/Donations/Components/DonationsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,6 @@ function DonationsForm(): ReactElement {
paymentSetup?.gateways?.stripe?.account &&
currency ? (
<NativePay
// isApplePayEnabled={true}
// isGooglePayEnabled={true}
country={country}
currency={currency}
amount={formatAmountForStripe(
Expand Down
2 changes: 0 additions & 2 deletions src/Donations/PaymentMethods/PaymentMethodTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ export default function PaymentMethodTabs({
{/*9 May 2023 - Apple Pay / Google Pay is disabled currently as it is not working correctly*/}
{showNativePay && (
<NativePay
// isApplePayEnabled={true}
// isGooglePayEnabled={true}
country={country}
currency={currency}
amount={formatAmountForStripe(
Expand Down
12 changes: 1 addition & 11 deletions src/Donations/PaymentMethods/PaymentRequestCustomButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ interface PaymentButtonProps {
paymentLabel: string;
frequency: string | null;
paymentSetup: PaymentOptions;
// isApplePayEnabled: boolean;
// isGooglePayEnabled: boolean;
}

export const PaymentRequestCustomButton = ({
Expand All @@ -43,9 +41,7 @@ export const PaymentRequestCustomButton = ({
paymentLabel,
frequency,
paymentSetup,
}: // isApplePayEnabled,
// isGooglePayEnabled,
PaymentButtonProps): ReactElement | null => {
}: PaymentButtonProps): ReactElement | null => {
const { t, ready } = useTranslation(["common"]);
const { paymentRequest, setPaymentRequest } = useContext(QueryParamContext);

Expand Down Expand Up @@ -216,8 +212,6 @@ PaymentButtonProps): ReactElement | null => {
/* 9 May 2023 - Apple Pay / Google Pay is disabled currently as it is not working correctly*/

interface NativePayProps {
// isApplePayEnabled: boolean;
// isGooglePayEnabled: boolean;
country: string;
currency: string;
amount: number;
Expand All @@ -232,8 +226,6 @@ interface NativePayProps {
frequency: string | null;
}
export const NativePay = ({
// isApplePayEnabled = true,
// isGooglePayEnabled = true,
country,
currency,
amount,
Expand Down Expand Up @@ -280,8 +272,6 @@ export const NativePay = ({
paymentLabel={paymentLabel}
frequency={frequency}
paymentSetup={paymentSetup}
// isApplePayEnabled={true}
// isGooglePayEnabled={true}
/>
</Elements>
);
Expand Down

0 comments on commit de0c599

Please sign in to comment.