mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
move stripe & payzen components folders into payment/
This commit is contained in:
parent
b5ab9fbc79
commit
4d0dc808e8
@ -5,9 +5,9 @@ import moment from 'moment';
|
||||
import _ from 'lodash';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { FabModal } from '../base/fab-modal';
|
||||
import { StripeElements } from '../stripe/stripe-elements';
|
||||
import { StripeConfirm } from '../stripe/stripe-confirm';
|
||||
import { StripeCardUpdate } from '../stripe/stripe-card-update';
|
||||
import { StripeElements } from '../payment/stripe/stripe-elements';
|
||||
import { StripeConfirm } from '../payment/stripe/stripe-confirm';
|
||||
import { StripeCardUpdate } from '../payment/stripe/stripe-card-update';
|
||||
import { User, UserRole } from '../../models/user';
|
||||
import { IFablab } from '../../models/fablab';
|
||||
import { PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemState } from '../../models/payment-schedule';
|
||||
|
@ -2,12 +2,12 @@ import React, { ReactNode, useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { enableMapSet } from 'immer';
|
||||
import { useImmer } from 'use-immer';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { Loader } from '../base/loader';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import SettingAPI from '../../api/setting';
|
||||
import PayzenAPI from '../../api/payzen';
|
||||
import { HtmlTranslate } from '../../base/html-translate';
|
||||
import { FabInput } from '../../base/fab-input';
|
||||
import { Loader } from '../../base/loader';
|
||||
import { SettingName } from '../../../models/setting';
|
||||
import SettingAPI from '../../../api/setting';
|
||||
import PayzenAPI from '../../../api/payzen';
|
||||
|
||||
enableMapSet();
|
||||
|
@ -1,15 +1,15 @@
|
||||
import React, { FunctionComponent, ReactNode } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { Loader } from '../base/loader';
|
||||
import { IApplication } from '../../models/application';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { User } from '../../models/user';
|
||||
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
||||
import { Loader } from '../../base/loader';
|
||||
import { IApplication } from '../../../models/application';
|
||||
import { CartItems, PaymentConfirmation } from '../../../models/payment';
|
||||
import { PaymentSchedule } from '../../../models/payment-schedule';
|
||||
import { User } from '../../../models/user';
|
||||
|
||||
import payzenLogo from '../../../../images/payzen-secure.png';
|
||||
import mastercardLogo from '../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../images/visa.png';
|
||||
import { GatewayFormProps, AbstractPaymentModal } from '../payment/abstract-payment-modal';
|
||||
import payzenLogo from '../../../../../images/payzen-secure.png';
|
||||
import mastercardLogo from '../../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../../images/visa.png';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -2,13 +2,13 @@ import React, { useEffect, useState } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useImmer } from 'use-immer';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { Loader } from '../base/loader';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import { IApplication } from '../../models/application';
|
||||
import SettingAPI from '../../api/setting';
|
||||
import { FabInput } from '../../base/fab-input';
|
||||
import { FabButton } from '../../base/fab-button';
|
||||
import { Loader } from '../../base/loader';
|
||||
import { HtmlTranslate } from '../../base/html-translate';
|
||||
import { SettingName } from '../../../models/setting';
|
||||
import { IApplication } from '../../../models/application';
|
||||
import SettingAPI from '../../../api/setting';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -1,9 +1,9 @@
|
||||
import React, { FormEvent } from 'react';
|
||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||
import { SetupIntent } from "@stripe/stripe-js";
|
||||
import { PaymentConfirmation } from '../../models/payment';
|
||||
import { User } from '../../models/user';
|
||||
import PaymentAPI from '../../api/payment';
|
||||
import { PaymentConfirmation } from '../../../models/payment';
|
||||
import { User } from '../../../models/user';
|
||||
import PaymentAPI from '../../../api/payment';
|
||||
|
||||
interface StripeCardUpdateProps {
|
||||
onSubmit: () => void,
|
@ -1,8 +1,8 @@
|
||||
import React, { memo, useEffect, useState } from 'react';
|
||||
import { Elements } from '@stripe/react-stripe-js';
|
||||
import { loadStripe } from "@stripe/stripe-js";
|
||||
import { SettingName } from '../../models/setting';
|
||||
import SettingAPI from '../../api/setting';
|
||||
import { SettingName } from '../../../models/setting';
|
||||
import SettingAPI from '../../../api/setting';
|
||||
|
||||
// initial request to the API
|
||||
const stripePublicKey = SettingAPI.get(SettingName.StripePublicKey);
|
@ -2,9 +2,9 @@ import React, { FormEvent } from 'react';
|
||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||
import { SetupIntent } from "@stripe/stripe-js";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
import { User } from '../../models/user';
|
||||
import PaymentAPI from '../../api/payment';
|
||||
import { CartItems, PaymentConfirmation } from '../../../models/payment';
|
||||
import { User } from '../../../models/user';
|
||||
import PaymentAPI from '../../../api/payment';
|
||||
|
||||
interface StripeFormProps {
|
||||
onSubmit: () => void,
|
@ -1,11 +1,11 @@
|
||||
import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { Loader } from '../base/loader';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import StripeAPI from '../../api/stripe';
|
||||
import SettingAPI from '../../api/setting';
|
||||
import { HtmlTranslate } from '../../base/html-translate';
|
||||
import { FabInput } from '../../base/fab-input';
|
||||
import { Loader } from '../../base/loader';
|
||||
import { SettingName } from '../../../models/setting';
|
||||
import StripeAPI from '../../../api/stripe';
|
||||
import SettingAPI from '../../../api/setting';
|
||||
|
||||
|
||||
interface StripeKeysFormProps {
|
@ -3,16 +3,16 @@ import { react2angular } from 'react2angular';
|
||||
import { SetupIntent } from '@stripe/stripe-js';
|
||||
import { StripeElements } from './stripe-elements';
|
||||
import { StripeForm } from './stripe-form';
|
||||
import { Loader } from '../base/loader';
|
||||
import { IApplication } from '../../models/application';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { User } from '../../models/user';
|
||||
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
||||
import { Loader } from '../../base/loader';
|
||||
import { IApplication } from '../../../models/application';
|
||||
import { CartItems, PaymentConfirmation } from '../../../models/payment';
|
||||
import { PaymentSchedule } from '../../../models/payment-schedule';
|
||||
import { User } from '../../../models/user';
|
||||
|
||||
import stripeLogo from '../../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../images/visa.png';
|
||||
import { GatewayFormProps, AbstractPaymentModal } from '../payment/abstract-payment-modal';
|
||||
import stripeLogo from '../../../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../../images/visa.png';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -5,16 +5,16 @@
|
||||
|
||||
import React, { BaseSyntheticEvent, useEffect, useState } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { Loader } from './base/loader';
|
||||
import { IApplication } from '../models/application';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { StripeKeysForm } from './payment/stripe/stripe-keys-form';
|
||||
import { PayZenKeysForm } from './payment/payzen/payzen-keys-form';
|
||||
import { FabModal, ModalSize } from './base/fab-modal';
|
||||
import { Loader } from './base/loader';
|
||||
import { User } from '../models/user';
|
||||
import { Gateway } from '../models/gateway';
|
||||
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
||||
import { SettingBulkResult, SettingName } from '../models/setting';
|
||||
import { IApplication } from '../models/application';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { PayZenKeysForm } from './payzen/payzen-keys-form';
|
||||
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
Loading…
x
Reference in New Issue
Block a user