fix: donation clean up (#44257)
* fix: donation clean up * rename file * rename2
This commit is contained in:
@ -9,7 +9,7 @@ import { createSelector } from 'reselect';
|
|||||||
import envData from '../../../config/env.json';
|
import envData from '../../../config/env.json';
|
||||||
import { langCodes } from '../../../config/i18n/all-langs';
|
import { langCodes } from '../../../config/i18n/all-langs';
|
||||||
import FreeCodeCampLogo from '../assets/icons/FreeCodeCamp-logo';
|
import FreeCodeCampLogo from '../assets/icons/FreeCodeCamp-logo';
|
||||||
import DonateForm from '../components/Donation/DonateForm';
|
import DonateForm from '../components/Donation/donate-form';
|
||||||
|
|
||||||
import { createFlashMessage } from '../components/Flash/redux';
|
import { createFlashMessage } from '../components/Flash/redux';
|
||||||
import { Loader, Spacer } from '../components/helpers';
|
import { Loader, Spacer } from '../components/helpers';
|
||||||
|
@ -3,8 +3,6 @@ import React from 'react';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import Spinner from 'react-spinkit';
|
import Spinner from 'react-spinkit';
|
||||||
|
|
||||||
import './Donation.css';
|
|
||||||
|
|
||||||
type DonateCompletionProps = {
|
type DonateCompletionProps = {
|
||||||
error: string | null;
|
error: string | null;
|
||||||
processing: boolean;
|
processing: boolean;
|
@ -26,14 +26,14 @@ import {
|
|||||||
postChargeStripeCard
|
postChargeStripeCard
|
||||||
} from '../../redux';
|
} from '../../redux';
|
||||||
import Spacer from '../helpers/spacer';
|
import Spacer from '../helpers/spacer';
|
||||||
import DonateCompletion from './DonateCompletion';
|
import DonateCompletion from './donate-completion';
|
||||||
import PatreonButton from './patreon-button';
|
import PatreonButton from './patreon-button';
|
||||||
import type { AddDonationData } from './paypal-button';
|
import type { AddDonationData } from './paypal-button';
|
||||||
import PaypalButton from './paypal-button';
|
import PaypalButton from './paypal-button';
|
||||||
import StripeCardForm, { HandleAuthentication } from './stripe-card-form';
|
import StripeCardForm, { HandleAuthentication } from './stripe-card-form';
|
||||||
import WalletsWrapper from './walletsButton';
|
import WalletsWrapper from './walletsButton';
|
||||||
|
|
||||||
import './Donation.css';
|
import './donation.css';
|
||||||
|
|
||||||
const numToCommas = (num: number): string =>
|
const numToCommas = (num: number): string =>
|
||||||
num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
|
num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
|
@ -19,9 +19,7 @@ import {
|
|||||||
} from '../../redux';
|
} from '../../redux';
|
||||||
import { isLocationSuperBlock } from '../../utils/path-parsers';
|
import { isLocationSuperBlock } from '../../utils/path-parsers';
|
||||||
import { Spacer } from '../helpers';
|
import { Spacer } from '../helpers';
|
||||||
import DonateForm from './DonateForm';
|
import DonateForm from './donate-form';
|
||||||
|
|
||||||
import './Donation.css';
|
|
||||||
|
|
||||||
const mapStateToProps = createSelector(
|
const mapStateToProps = createSelector(
|
||||||
isDonationModalOpenSelector,
|
isDonationModalOpenSelector,
|
@ -9,7 +9,7 @@ import {
|
|||||||
isSignedInSelector,
|
isSignedInSelector,
|
||||||
tryToShowDonationModal
|
tryToShowDonationModal
|
||||||
} from '../../redux';
|
} from '../../redux';
|
||||||
import DonateModal from '../Donation/DonationModal';
|
import DonateModal from '../Donation/donation-modal';
|
||||||
import createRedirect from '../create-redirect';
|
import createRedirect from '../create-redirect';
|
||||||
|
|
||||||
import './prism.css';
|
import './prism.css';
|
||||||
|
@ -8,13 +8,13 @@ import { bindActionCreators } from 'redux';
|
|||||||
import type { Dispatch } from 'redux';
|
import type { Dispatch } from 'redux';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
import DonateForm from '../components/Donation/DonateForm';
|
import DonateForm from '../components/Donation/donate-form';
|
||||||
import {
|
import {
|
||||||
DonationText,
|
DonationText,
|
||||||
DonationSupportText,
|
DonationSupportText,
|
||||||
DonationOptionsText,
|
DonationOptionsText,
|
||||||
DonationOptionsAlertText
|
DonationOptionsAlertText
|
||||||
} from '../components/Donation/DonationTextComponents';
|
} from '../components/Donation/donation-text-components';
|
||||||
import { Spacer, Loader } from '../components/helpers';
|
import { Spacer, Loader } from '../components/helpers';
|
||||||
import CampersImage from '../components/landing/components/campers-image';
|
import CampersImage from '../components/landing/components/campers-image';
|
||||||
import { signInLoadingSelector, userSelector, executeGA } from '../redux';
|
import { signInLoadingSelector, userSelector, executeGA } from '../redux';
|
||||||
|
@ -11,7 +11,7 @@ import { bindActionCreators, Dispatch } from 'redux';
|
|||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
import { SuperBlocks } from '../../../../config/certification-settings';
|
import { SuperBlocks } from '../../../../config/certification-settings';
|
||||||
import DonateModal from '../../components/Donation/DonationModal';
|
import DonateModal from '../../components/Donation/donation-modal';
|
||||||
import Login from '../../components/Header/components/Login';
|
import Login from '../../components/Header/components/Login';
|
||||||
import Map from '../../components/Map';
|
import Map from '../../components/Map';
|
||||||
import { Spacer } from '../../components/helpers';
|
import { Spacer } from '../../components/helpers';
|
||||||
|
Reference in New Issue
Block a user