mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
fixed imports
This commit is contained in:
parent
f28b66068f
commit
00fb384ba5
@ -14,4 +14,5 @@ These components must be written using the following conventions:
|
||||
- Depending on if we want to use the `<Suspense>` wrapper or not, we can export the component directly or wrap it in a `<Loader>` wrapper.
|
||||
- When a component is used in angularJS, the wrapper is required. The component must be named like `const Foo` (no export if not used in React) and must have a `const FooWrapper` at the end of its file, which wraps the component in a `<Loader>`.
|
||||
- Translations must be grouped per component. For example, the `FooBar` component must have its translations in the `config/locales/app.$SCOPE.en.yml` file, under the `foo_bar` key.
|
||||
- Most of these rules are validated by eslint-plugin-fabmanager. Please ensure you write eslint valid code, and think twice you have a very good reason before disabling any rule.
|
||||
|
||||
|
@ -2,11 +2,11 @@ import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Select from 'react-select';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { Loader } from './base/loader';
|
||||
import { Event } from '../models/event';
|
||||
import { EventTheme } from '../models/event-theme';
|
||||
import { IApplication } from '../models/application';
|
||||
import EventThemeAPI from '../api/event-theme';
|
||||
import { Loader } from '../base/loader';
|
||||
import { Event } from '../../models/event';
|
||||
import { EventTheme } from '../../models/event-theme';
|
||||
import { IApplication } from '../../models/application';
|
||||
import EventThemeAPI from '../../api/event-theme';
|
||||
|
||||
declare const Application: IApplication;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { FunctionComponent, ReactNode, useEffect, useRef, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import WalletLib from '../../lib/wallet';
|
||||
import { WalletInfo } from '../wallet-info';
|
||||
import { WalletInfo } from './wallet-info';
|
||||
import { FabModal, ModalSize } from '../base/fab-modal';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { CustomAsset, CustomAssetName } from '../../models/custom-asset';
|
||||
|
@ -6,15 +6,15 @@
|
||||
import React, { BaseSyntheticEvent, useEffect, useState } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
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 { SettingBulkResult, SettingName } from '../models/setting';
|
||||
import { IApplication } from '../models/application';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
||||
import { PayzenKeysForm } from './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 { SettingBulkResult, SettingName } from '../../models/setting';
|
||||
import { IApplication } from '../../models/application';
|
||||
import SettingAPI from '../../api/setting';
|
||||
|
||||
declare const Application: IApplication;
|
||||
|
||||
@ -139,10 +139,10 @@ export const SelectGatewayModal: React.FC<SelectGatewayModalModalProps> = ({ isO
|
||||
);
|
||||
};
|
||||
|
||||
const SelectGatewayModalWrapper: React.FC<SelectGatewayModalModalProps> = ({ isOpen, toggleModal, currentUser, onSuccess, onError }) => {
|
||||
const SelectGatewayModalWrapper: React.FC<SelectGatewayModalModalProps> = (props) => {
|
||||
return (
|
||||
<Loader>
|
||||
<SelectGatewayModal isOpen={isOpen} toggleModal={toggleModal} currentUser={currentUser} onSuccess={onSuccess} onError={onError} />
|
||||
<SelectGatewayModal {...props} />
|
||||
</Loader>
|
||||
);
|
||||
};
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { IApplication } from '../models/application';
|
||||
import '../lib/i18n';
|
||||
import { Loader } from './base/loader';
|
||||
import { User } from '../models/user';
|
||||
import { Wallet } from '../models/wallet';
|
||||
import WalletLib from '../lib/wallet';
|
||||
import { ShoppingCart } from '../models/payment';
|
||||
import FormatLib from '../lib/format';
|
||||
import { IApplication } from '../../models/application';
|
||||
import '../../lib/i18n';
|
||||
import { Loader } from '../base/loader';
|
||||
import { User } from '../../models/user';
|
||||
import { Wallet } from '../../models/wallet';
|
||||
import WalletLib from '../../lib/wallet';
|
||||
import { ShoppingCart } from '../../models/payment';
|
||||
import FormatLib from '../../lib/format';
|
||||
|
||||
declare const Application: IApplication;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user