mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-19 08:52:25 +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.
|
- 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>`.
|
- 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.
|
- 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 { useTranslation } from 'react-i18next';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { Loader } from './base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { Event } from '../models/event';
|
import { Event } from '../../models/event';
|
||||||
import { EventTheme } from '../models/event-theme';
|
import { EventTheme } from '../../models/event-theme';
|
||||||
import { IApplication } from '../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
import EventThemeAPI from '../api/event-theme';
|
import EventThemeAPI from '../../api/event-theme';
|
||||||
|
|
||||||
declare const Application: IApplication;
|
declare const Application: IApplication;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { FunctionComponent, ReactNode, useEffect, useRef, useState } from 'react';
|
import React, { FunctionComponent, ReactNode, useEffect, useRef, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import WalletLib from '../../lib/wallet';
|
import WalletLib from '../../lib/wallet';
|
||||||
import { WalletInfo } from '../wallet-info';
|
import { WalletInfo } from './wallet-info';
|
||||||
import { FabModal, ModalSize } from '../base/fab-modal';
|
import { FabModal, ModalSize } from '../base/fab-modal';
|
||||||
import { HtmlTranslate } from '../base/html-translate';
|
import { HtmlTranslate } from '../base/html-translate';
|
||||||
import { CustomAsset, CustomAssetName } from '../../models/custom-asset';
|
import { CustomAsset, CustomAssetName } from '../../models/custom-asset';
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
import React, { BaseSyntheticEvent, useEffect, useState } from 'react';
|
import React, { BaseSyntheticEvent, useEffect, useState } from 'react';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { StripeKeysForm } from './payment/stripe/stripe-keys-form';
|
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
||||||
import { PayzenKeysForm } from './payment/payzen/payzen-keys-form';
|
import { PayzenKeysForm } from './payzen/payzen-keys-form';
|
||||||
import { FabModal, ModalSize } from './base/fab-modal';
|
import { FabModal, ModalSize } from '../base/fab-modal';
|
||||||
import { Loader } from './base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { User } from '../models/user';
|
import { User } from '../../models/user';
|
||||||
import { Gateway } from '../models/gateway';
|
import { Gateway } from '../../models/gateway';
|
||||||
import { SettingBulkResult, SettingName } from '../models/setting';
|
import { SettingBulkResult, SettingName } from '../../models/setting';
|
||||||
import { IApplication } from '../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
import SettingAPI from '../api/setting';
|
import SettingAPI from '../../api/setting';
|
||||||
|
|
||||||
declare const Application: IApplication;
|
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 (
|
return (
|
||||||
<Loader>
|
<Loader>
|
||||||
<SelectGatewayModal isOpen={isOpen} toggleModal={toggleModal} currentUser={currentUser} onSuccess={onSuccess} onError={onError} />
|
<SelectGatewayModal {...props} />
|
||||||
</Loader>
|
</Loader>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { IApplication } from '../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
import '../lib/i18n';
|
import '../../lib/i18n';
|
||||||
import { Loader } from './base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { User } from '../models/user';
|
import { User } from '../../models/user';
|
||||||
import { Wallet } from '../models/wallet';
|
import { Wallet } from '../../models/wallet';
|
||||||
import WalletLib from '../lib/wallet';
|
import WalletLib from '../../lib/wallet';
|
||||||
import { ShoppingCart } from '../models/payment';
|
import { ShoppingCart } from '../../models/payment';
|
||||||
import FormatLib from '../lib/format';
|
import FormatLib from '../../lib/format';
|
||||||
|
|
||||||
declare const Application: IApplication;
|
declare const Application: IApplication;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user