mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
(quality) adapt code to New JSX transform
This commit is contained in:
parent
25edbcfbb0
commit
85ec08ae67
16
.eslintrc
16
.eslintrc
@ -37,14 +37,11 @@
|
|||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"project": "./tsconfig.json"
|
"project": "./tsconfig.json"
|
||||||
},
|
},
|
||||||
"settings": {
|
|
||||||
"react": {
|
|
||||||
"version": "detect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins": ["@typescript-eslint", "react"],
|
"plugins": ["@typescript-eslint", "react"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"react/prop-types": "off"
|
"react/prop-types": "off",
|
||||||
|
"react/jsx-uses-react": "off",
|
||||||
|
"react/react-in-jsx-scope": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -67,6 +64,11 @@
|
|||||||
"camelcase": "off"
|
"camelcase": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "detect"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { SubmitHandler, useForm } from 'react-hook-form';
|
import { SubmitHandler, useForm } from 'react-hook-form';
|
||||||
import { FabButton } from '../base/fab-button';
|
import { FabButton } from '../base/fab-button';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import SettingAPI from '../../api/setting';
|
import SettingAPI from '../../api/setting';
|
||||||
import { UseFormRegister } from 'react-hook-form';
|
import { UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/**
|
|
||||||
* This is a compatibility wrapper to allow usage of react-switch inside the angular.js app
|
|
||||||
*/
|
|
||||||
import Switch from 'react-switch';
|
import Switch from 'react-switch';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { IApplication } from '../../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
|
|
||||||
declare const Application: IApplication;
|
declare const Application: IApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is a compatibility wrapper to allow usage of react-switch inside the angular.js app
|
||||||
|
*/
|
||||||
Application.Components.component('switch', react2angular(Switch, ['checked', 'onChange', 'id', 'className', 'disabled']));
|
Application.Components.component('switch', react2angular(Switch, ['checked', 'onChange', 'id', 'className', 'disabled']));
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { UseFormRegister } from 'react-hook-form';
|
import { UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { UseFormRegister, useFieldArray, ArrayPath, useWatch, Path, FieldPathValue } from 'react-hook-form';
|
import { UseFormRegister, useFieldArray, ArrayPath, useWatch, Path, FieldPathValue } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import AuthProviderAPI from '../../api/auth-provider';
|
import AuthProviderAPI from '../../api/auth-provider';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { FormInput } from '../form/form-input';
|
import { FormInput } from '../form/form-input';
|
||||||
import { UseFormRegister } from 'react-hook-form';
|
import { UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FormSelect } from '../form/form-select';
|
import { FormSelect } from '../form/form-select';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { ArrayPath, useFieldArray, UseFormRegister } from 'react-hook-form';
|
import { ArrayPath, useFieldArray, UseFormRegister } from 'react-hook-form';
|
||||||
import { Control } from 'react-hook-form/dist/types/form';
|
import { Control } from 'react-hook-form/dist/types/form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { UseFormRegister } from 'react-hook-form';
|
import { UseFormRegister } from 'react-hook-form';
|
||||||
import { Control } from 'react-hook-form/dist/types/form';
|
import { Control } from 'react-hook-form/dist/types/form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { FormInput } from '../form/form-input';
|
import { FormInput } from '../form/form-input';
|
||||||
import { UseFormRegister } from 'react-hook-form';
|
import { UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { Path, UseFormRegister } from 'react-hook-form';
|
import { Path, UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { FormInput } from '../form/form-input';
|
import { FormInput } from '../form/form-input';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Path, UseFormRegister } from 'react-hook-form';
|
import { Path, UseFormRegister } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import { useCallback, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useForm, SubmitHandler, useWatch } from 'react-hook-form';
|
import { useForm, SubmitHandler, useWatch } from 'react-hook-form';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { debounce as _debounce } from 'lodash';
|
import { debounce as _debounce } from 'lodash';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { ArrayPath, useFieldArray, UseFormRegister } from 'react-hook-form';
|
import { ArrayPath, useFieldArray, UseFormRegister } from 'react-hook-form';
|
||||||
import { Control } from 'react-hook-form/dist/types/form';
|
import { Control } from 'react-hook-form/dist/types/form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { IntegerMappingForm } from './integer-mapping-form';
|
import { IntegerMappingForm } from './integer-mapping-form';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { CaretDown } from 'phosphor-react';
|
import { CaretDown } from 'phosphor-react';
|
||||||
|
|
||||||
interface AccordionItemProps {
|
interface AccordionItemProps {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import { Component } from 'react';
|
||||||
|
|
||||||
interface ErrorBoundaryState {
|
interface ErrorBoundaryState {
|
||||||
hasError: boolean;
|
hasError: boolean;
|
||||||
@ -8,7 +8,7 @@ interface ErrorBoundaryState {
|
|||||||
* This component will catch javascript errors anywhere in their child component tree and display a message to the user.
|
* This component will catch javascript errors anywhere in their child component tree and display a message to the user.
|
||||||
* @see https://reactjs.org/docs/error-boundaries.html
|
* @see https://reactjs.org/docs/error-boundaries.html
|
||||||
*/
|
*/
|
||||||
export class ErrorBoundary extends React.Component<unknown, ErrorBoundaryState> {
|
export class ErrorBoundary extends Component<unknown, ErrorBoundaryState> {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = { hasError: false };
|
this.state = { hasError: false };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabAlertProps {
|
interface FabAlertProps {
|
||||||
level: 'info' | 'warning' | 'danger',
|
level: 'info' | 'warning' | 'danger',
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, BaseSyntheticEvent } from 'react';
|
import { ReactNode, BaseSyntheticEvent } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabButtonProps {
|
interface FabButtonProps {
|
||||||
onClick?: (event: BaseSyntheticEvent) => void,
|
onClick?: (event: BaseSyntheticEvent) => void,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { BaseSyntheticEvent, ReactNode, useCallback, useEffect, useState } from 'react';
|
import { BaseSyntheticEvent, ReactNode, useCallback, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { debounce as _debounce } from 'lodash';
|
import { debounce as _debounce } from 'lodash';
|
||||||
|
|
||||||
type inputType = string|number|readonly string [];
|
type inputType = string|number|readonly string [];
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, BaseSyntheticEvent, useEffect } from 'react';
|
import { ReactNode, BaseSyntheticEvent, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import Modal from 'react-modal';
|
import Modal from 'react-modal';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Loader } from './loader';
|
import { Loader } from './loader';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabOutputCopyProps {
|
interface FabOutputCopyProps {
|
||||||
text: string,
|
text: string,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { CaretDoubleLeft, CaretLeft, CaretRight, CaretDoubleRight } from 'phosphor-react';
|
import { CaretDoubleLeft, CaretLeft, CaretRight, CaretDoubleRight } from 'phosphor-react';
|
||||||
|
|
||||||
interface FabPaginationProps {
|
interface FabPaginationProps {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabPanelProps {
|
interface FabPanelProps {
|
||||||
className?: string,
|
className?: string,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabPopoverProps {
|
interface FabPopoverProps {
|
||||||
title: string,
|
title: string,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
interface FabStateLabelProps {
|
interface FabStateLabelProps {
|
||||||
status?: string,
|
status?: string,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useEffect, useState } from 'react';
|
import { ReactNode, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
type tabId = string|number;
|
type tabId = string|number;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
interface HtmlTranslateProps {
|
interface HtmlTranslateProps {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { BaseSyntheticEvent, ReactNode } from 'react';
|
import { BaseSyntheticEvent, ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
type inputType = string|number|readonly string [];
|
type inputType = string|number|readonly string [];
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { Suspense } from 'react';
|
import { Suspense } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This component is a wrapper that display a loader while the children components have their rendering suspended.
|
* This component is a wrapper that display a loader while the children components have their rendering suspended.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { forwardRef, RefObject, useEffect, useImperativeHandle, useRef } from 'react';
|
import { forwardRef, RefObject, useEffect, useImperativeHandle, useRef } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useEditor, EditorContent, Editor } from '@tiptap/react';
|
import { useEditor, EditorContent, Editor } from '@tiptap/react';
|
||||||
import StarterKit from '@tiptap/starter-kit';
|
import StarterKit from '@tiptap/starter-kit';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useCallback, useState, useEffect } from 'react';
|
import { useCallback, useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import useOnclickOutside from 'react-cool-onclickoutside';
|
import useOnclickOutside from 'react-cool-onclickoutside';
|
||||||
import { Editor } from '@tiptap/react';
|
import { Editor } from '@tiptap/react';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FabInput } from '../base/fab-input';
|
import { FabInput } from '../base/fab-input';
|
||||||
import { FabAlert } from '../base/fab-alert';
|
import { FabAlert } from '../base/fab-alert';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { Loader } from '../../base/loader';
|
import { Loader } from '../../base/loader';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useEffect, useState } from 'react';
|
import { ReactNode, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { FabPanel } from '../../base/fab-panel';
|
import { FabPanel } from '../../base/fab-panel';
|
||||||
import { Loader } from '../../base/loader';
|
import { Loader } from '../../base/loader';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { IApplication } from '../../../models/application';
|
import { IApplication } from '../../../models/application';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { ReservationsPanel } from './reservations-panel';
|
import { ReservationsPanel } from './reservations-panel';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useEffect, useState } from 'react';
|
import { ReactNode, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { FabPanel } from '../../base/fab-panel';
|
import { FabPanel } from '../../base/fab-panel';
|
||||||
import { Reservation, SlotsReservation } from '../../../models/reservation';
|
import { Reservation, SlotsReservation } from '../../../models/reservation';
|
||||||
import ReservationAPI from '../../../api/reservation';
|
import ReservationAPI from '../../../api/reservation';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { LabelledInput } from './base/labelled-input';
|
import { LabelledInput } from './base/labelled-input';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { TDateISODate } from '../typings/date-iso';
|
import { TDateISODate } from '../typings/date-iso';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React 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';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form';
|
import { SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form';
|
||||||
import { Event, EventDecoration, EventPriceCategoryAttributes, RecurrenceOption } from '../../models/event';
|
import { Event, EventDecoration, EventPriceCategoryAttributes, RecurrenceOption } from '../../models/event';
|
||||||
import EventAPI from '../../api/event';
|
import EventAPI from '../../api/event';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Event } from '../../models/event';
|
import { Event } from '../../models/event';
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { PropsWithChildren, ReactNode, useEffect, useState } from 'react';
|
import { PropsWithChildren, ReactNode, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { AbstractFormComponent } from '../../models/form-component';
|
import { AbstractFormComponent } from '../../models/form-component';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { get as _get } from 'lodash';
|
import { get as _get } from 'lodash';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { Controller, Path, FieldPathValue } from 'react-hook-form';
|
import { Controller, Path, FieldPathValue } from 'react-hook-form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { FieldPath } from 'react-hook-form/dist/types/path';
|
import { FieldPath } from 'react-hook-form/dist/types/path';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Path } from 'react-hook-form';
|
import { Path } from 'react-hook-form';
|
||||||
import { UnpackNestedValue, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
import { UnpackNestedValue, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Path, Controller } from 'react-hook-form';
|
import { Path, Controller } from 'react-hook-form';
|
||||||
import { UnpackNestedValue, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
import { UnpackNestedValue, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useCallback } from 'react';
|
import { ReactNode, useCallback } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { FieldPathValue } from 'react-hook-form';
|
import { FieldPathValue } from 'react-hook-form';
|
||||||
import { debounce as _debounce } from 'lodash';
|
import { debounce as _debounce } from 'lodash';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import { FormFileUpload } from './form-file-upload';
|
import { FormFileUpload } from './form-file-upload';
|
||||||
import { FabButton } from '../base/fab-button';
|
import { FabButton } from '../base/fab-button';
|
||||||
import { Plus } from 'phosphor-react';
|
import { Plus } from 'phosphor-react';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
import { FormComponent, FormControlledComponent } from '../../models/form-component';
|
import { FormComponent, FormControlledComponent } from '../../models/form-component';
|
||||||
import { AbstractFormItemProps } from './abstract-form-item';
|
import { AbstractFormItemProps } from './abstract-form-item';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import AsyncSelect from 'react-select/async';
|
import AsyncSelect from 'react-select/async';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import AsyncCreatableSelect from 'react-select/async-creatable';
|
import AsyncCreatableSelect from 'react-select/async-creatable';
|
||||||
@ -39,8 +39,8 @@ type selectOption<TOptionValue> = { value: TOptionValue, label: string, select?:
|
|||||||
export const FormMultiSelect = <TFieldValues extends FieldValues, TContext extends object, TOptionValue>({ id, label, tooltip, className, control, placeholder, options, valuesDefault, error, rules, disabled, onChange, formState, warning, loadOptions, creatable, selectKey }: FormSelectProps<TFieldValues, TContext, TOptionValue>) => {
|
export const FormMultiSelect = <TFieldValues extends FieldValues, TContext extends object, TOptionValue>({ id, label, tooltip, className, control, placeholder, options, valuesDefault, error, rules, disabled, onChange, formState, warning, loadOptions, creatable, selectKey }: FormSelectProps<TFieldValues, TContext, TOptionValue>) => {
|
||||||
const { t } = useTranslation('shared');
|
const { t } = useTranslation('shared');
|
||||||
|
|
||||||
const [isDisabled, setIsDisabled] = React.useState<boolean>(false);
|
const [isDisabled, setIsDisabled] = useState<boolean>(false);
|
||||||
const [allOptions, setAllOptions] = React.useState<Array<selectOption<TOptionValue>>>(options || []);
|
const [allOptions, setAllOptions] = useState<Array<selectOption<TOptionValue>>>(options || []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof disabled === 'function') {
|
if (typeof disabled === 'function') {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { FormControlledComponent } from '../../models/form-component';
|
import { FormControlledComponent } from '../../models/form-component';
|
||||||
import { AbstractFormItem, AbstractFormItemProps } from './abstract-form-item';
|
import { AbstractFormItem, AbstractFormItemProps } from './abstract-form-item';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import CreatableSelect from 'react-select/creatable';
|
import CreatableSelect from 'react-select/creatable';
|
||||||
import { Controller, Path } from 'react-hook-form';
|
import { Controller, Path } from 'react-hook-form';
|
||||||
@ -22,7 +22,7 @@ interface FormSelectProps<TFieldValues, TContext extends object, TOptionValue, T
|
|||||||
* This component is a wrapper for react-select to use with react-hook-form
|
* This component is a wrapper for react-select to use with react-hook-form
|
||||||
*/
|
*/
|
||||||
export const FormSelect = <TFieldValues extends FieldValues, TContext extends object, TOptionValue, TOptionLabel>({ id, label, tooltip, className, control, placeholder, options, valueDefault, error, warning, rules, disabled = false, onChange, clearable = false, formState, creatable = false }: FormSelectProps<TFieldValues, TContext, TOptionValue, TOptionLabel>) => {
|
export const FormSelect = <TFieldValues extends FieldValues, TContext extends object, TOptionValue, TOptionLabel>({ id, label, tooltip, className, control, placeholder, options, valueDefault, error, warning, rules, disabled = false, onChange, clearable = false, formState, creatable = false }: FormSelectProps<TFieldValues, TContext, TOptionValue, TOptionLabel>) => {
|
||||||
const [isDisabled, setIsDisabled] = React.useState<boolean>(false);
|
const [isDisabled, setIsDisabled] = useState<boolean>(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof disabled === 'function') {
|
if (typeof disabled === 'function') {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { FormControlledComponent } from '../../models/form-component';
|
import { FormControlledComponent } from '../../models/form-component';
|
||||||
import { FieldPath } from 'react-hook-form/dist/types/path';
|
import { FieldPath } from 'react-hook-form/dist/types/path';
|
||||||
import { FieldPathValue, UnpackNestedValue } from 'react-hook-form/dist/types';
|
import { FieldPathValue, UnpackNestedValue } from 'react-hook-form/dist/types';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { PropsWithChildren, useCallback, useEffect, useState } from 'react';
|
import { PropsWithChildren, useCallback, useEffect, useState } from 'react';
|
||||||
import { UIRouter } from '@uirouter/angularjs';
|
import { UIRouter } from '@uirouter/angularjs';
|
||||||
import { FormState } from 'react-hook-form/dist/types/form';
|
import { FormState } from 'react-hook-form/dist/types/form';
|
||||||
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { User } from '../../models/user';
|
import { User } from '../../models/user';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { IApplication } from '../../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useState } from 'react';
|
import { ReactNode, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Machine } from '../../models/machine';
|
import { Machine } from '../../models/machine';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
|
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
|
||||||
import { Machine } from '../../models/machine';
|
import { Machine } from '../../models/machine';
|
||||||
import MachineAPI from '../../api/machine';
|
import MachineAPI from '../../api/machine';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { SelectOption } from '../../models/select';
|
import { SelectOption } from '../../models/select';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Machine } from '../../models/machine';
|
import { Machine } from '../../models/machine';
|
||||||
import { IApplication } from '../../models/application';
|
import { IApplication } from '../../models/application';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { HtmlTranslate } from '../base/html-translate';
|
import { HtmlTranslate } from '../base/html-translate';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
import { HtmlTranslate } from '../base/html-translate';
|
import { HtmlTranslate } from '../base/html-translate';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { PendingTrainingModal } from './pending-training-modal';
|
import { PendingTrainingModal } from './pending-training-modal';
|
||||||
|
@ -4,7 +4,8 @@ import {
|
|||||||
PaymentScheduleItem,
|
PaymentScheduleItem,
|
||||||
PaymentScheduleItemState
|
PaymentScheduleItemState
|
||||||
} from '../../models/payment-schedule';
|
} from '../../models/payment-schedule';
|
||||||
import React, { ReactElement, useState } from 'react';
|
import { ReactElement, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { FabButton } from '../base/fab-button';
|
import { FabButton } from '../base/fab-button';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { User } from '../../models/user';
|
import { User } from '../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import '../../lib/i18n';
|
import '../../lib/i18n';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { PaymentSchedulesTable } from './payment-schedules-table';
|
import { PaymentSchedulesTable } from './payment-schedules-table';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { DocumentFilters } from '../document-filters';
|
import { DocumentFilters } from '../document-filters';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactEventHandler, useState, useEffect, ReactElement } from 'react';
|
import { ReactEventHandler, useState, useEffect, ReactElement } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import Switch from 'react-switch';
|
import Switch from 'react-switch';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FunctionComponent, ReactNode, useEffect, useRef, useState } from 'react';
|
import { FunctionComponent, ReactNode, useEffect, useRef, useState } from 'react';
|
||||||
|
import * as React 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';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react';
|
import { ReactElement, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { StripeModal } from './stripe/stripe-modal';
|
import { StripeModal } from './stripe/stripe-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FormEvent, useEffect, useState } from 'react';
|
import { FormEvent, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { GatewayFormProps } from '../abstract-payment-modal';
|
import { GatewayFormProps } from '../abstract-payment-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FunctionComponent, ReactNode } from 'react';
|
import { FunctionComponent, ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { AbstractPaymentModal, GatewayFormProps } from '../abstract-payment-modal';
|
import { AbstractPaymentModal, GatewayFormProps } from '../abstract-payment-modal';
|
||||||
import { LocalPaymentForm } from './local-payment-form';
|
import { LocalPaymentForm } from './local-payment-form';
|
||||||
import { ShoppingCart } from '../../../models/payment';
|
import { ShoppingCart } from '../../../models/payment';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useState } from 'react';
|
import { ReactNode, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FabModal } from '../../base/fab-modal';
|
import { FabModal } from '../../base/fab-modal';
|
||||||
import { PaymentSchedule } from '../../../models/payment-schedule';
|
import { PaymentSchedule } from '../../../models/payment-schedule';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FormEvent, FunctionComponent, useEffect, useRef, useState } from 'react';
|
import { FormEvent, FunctionComponent, useEffect, useRef, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import KRGlue from '@lyracom/embedded-form-glue';
|
import KRGlue from '@lyracom/embedded-form-glue';
|
||||||
import { GatewayFormProps } from '../abstract-payment-modal';
|
import { GatewayFormProps } from '../abstract-payment-modal';
|
||||||
import SettingAPI from '../../../api/setting';
|
import SettingAPI from '../../../api/setting';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useEffect, useState } from 'react';
|
import { ReactNode, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { enableMapSet } from 'immer';
|
import { enableMapSet } from 'immer';
|
||||||
import { useImmer } from 'use-immer';
|
import { useImmer } from 'use-immer';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FunctionComponent, ReactNode } from 'react';
|
import { FunctionComponent, ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
||||||
import { ShoppingCart } from '../../../models/payment';
|
import { ShoppingCart } from '../../../models/payment';
|
||||||
import { PaymentSchedule } from '../../../models/payment-schedule';
|
import { PaymentSchedule } from '../../../models/payment-schedule';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useImmer } from 'use-immer';
|
import { useImmer } from 'use-immer';
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
* The configuration of a payment gateway is required to enable the online payments.
|
* The configuration of a payment gateway is required to enable the online payments.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { BaseSyntheticEvent, useEffect, useState } from 'react';
|
import { BaseSyntheticEvent, useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
import * as React from 'react';
|
||||||
import { react2angular } from 'react2angular';
|
import { react2angular } from 'react2angular';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
||||||
|
@ -2,7 +2,8 @@ import { Invoice } from '../../../models/invoice';
|
|||||||
import { PaymentSchedule } from '../../../models/payment-schedule';
|
import { PaymentSchedule } from '../../../models/payment-schedule';
|
||||||
import { ShoppingCart } from '../../../models/payment';
|
import { ShoppingCart } from '../../../models/payment';
|
||||||
import { User } from '../../../models/user';
|
import { User } from '../../../models/user';
|
||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import WalletAPI from '../../../api/wallet';
|
import WalletAPI from '../../../api/wallet';
|
||||||
import { Wallet } from '../../../models/wallet';
|
import { Wallet } from '../../../models/wallet';
|
||||||
import WalletLib from '../../../lib/wallet';
|
import WalletLib from '../../../lib/wallet';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useState } from 'react';
|
import { ReactNode, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FabModal } from '../../base/fab-modal';
|
import { FabModal } from '../../base/fab-modal';
|
||||||
import { StripeCardUpdate } from './stripe-card-update';
|
import { StripeCardUpdate } from './stripe-card-update';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FormEvent } from 'react';
|
import { FormEvent } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||||
import { User } from '../../../models/user';
|
import { User } from '../../../models/user';
|
||||||
import StripeAPI from '../../../api/stripe';
|
import StripeAPI from '../../../api/stripe';
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { StripeConfirm } from './stripe-confirm';
|
import { StripeConfirm } from './stripe-confirm';
|
||||||
import { FabModal } from '../../base/fab-modal';
|
import { FabModal } from '../../base/fab-modal';
|
||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import PaymentScheduleAPI from '../../../api/payment-schedule';
|
import PaymentScheduleAPI from '../../../api/payment-schedule';
|
||||||
import { PaymentScheduleItem } from '../../../models/payment-schedule';
|
import { PaymentScheduleItem } from '../../../models/payment-schedule';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useStripe } from '@stripe/react-stripe-js';
|
import { useStripe } from '@stripe/react-stripe-js';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { memo, useEffect, useState } from 'react';
|
import { memo, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Elements } from '@stripe/react-stripe-js';
|
import { Elements } from '@stripe/react-stripe-js';
|
||||||
import { loadStripe, Stripe } from '@stripe/stripe-js';
|
import { loadStripe, Stripe } from '@stripe/stripe-js';
|
||||||
import SettingAPI from '../../../api/setting';
|
import SettingAPI from '../../../api/setting';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FormEvent } from 'react';
|
import { FormEvent } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { GatewayFormProps } from '../abstract-payment-modal';
|
import { GatewayFormProps } from '../abstract-payment-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
import { ReactNode, useEffect, useRef, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { HtmlTranslate } from '../../base/html-translate';
|
import { HtmlTranslate } from '../../base/html-translate';
|
||||||
import { FabInput } from '../../base/fab-input';
|
import { FabInput } from '../../base/fab-input';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { FunctionComponent, ReactNode } from 'react';
|
import { FunctionComponent, ReactNode } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { StripeElements } from './stripe-elements';
|
import { StripeElements } from './stripe-elements';
|
||||||
import { StripeForm } from './stripe-form';
|
import { StripeForm } from './stripe-form';
|
||||||
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
import { GatewayFormProps, AbstractPaymentModal } from '../abstract-payment-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react';
|
import { ReactElement, useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Loader } from '../base/loader';
|
import { Loader } from '../base/loader';
|
||||||
import { StripeCardUpdateModal } from './stripe/stripe-card-update-modal';
|
import { StripeCardUpdateModal } from './stripe/stripe-card-update-modal';
|
||||||
import { PayzenCardUpdateModal } from './payzen/payzen-card-update-modal';
|
import { PayzenCardUpdateModal } from './payzen/payzen-card-update-modal';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
import * as React 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';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import PlanCategoryAPI from '../../api/plan-category';
|
import PlanCategoryAPI from '../../api/plan-category';
|
||||||
import { PlanCategory } from '../../models/plan-category';
|
import { PlanCategory } from '../../models/plan-category';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { PlanCategory } from '../../models/plan-category';
|
import { PlanCategory } from '../../models/plan-category';
|
||||||
import { FabButton } from '../base/fab-button';
|
import { FabButton } from '../base/fab-button';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import PlanCategoryAPI from '../../api/plan-category';
|
import PlanCategoryAPI from '../../api/plan-category';
|
||||||
import { PlanCategory } from '../../models/plan-category';
|
import { PlanCategory } from '../../models/plan-category';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import PlanCategoryAPI from '../../api/plan-category';
|
import PlanCategoryAPI from '../../api/plan-category';
|
||||||
import { PlanCategory } from '../../models/plan-category';
|
import { PlanCategory } from '../../models/plan-category';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { FabModal } from '../base/fab-modal';
|
import { FabModal } from '../base/fab-modal';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { SubmitHandler, useForm } from 'react-hook-form';
|
import { SubmitHandler, useForm } from 'react-hook-form';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import * as React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
import * as React from 'react';
|
||||||
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
|
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
|
||||||
import { Interval, Plan } from '../../models/plan';
|
import { Interval, Plan } from '../../models/plan';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useFieldArray, UseFormRegister } from 'react-hook-form';
|
import { useFieldArray, UseFormRegister } from 'react-hook-form';
|
||||||
import { Control, FormState, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
import { Control, FormState, UseFormSetValue } from 'react-hook-form/dist/types/form';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user