Remove unused imports

This commit is contained in:
Eric Schultz 2018-06-29 13:13:31 -05:00
parent 1b8652b992
commit 7bc7a83e51
17 changed files with 27 additions and 47 deletions

View file

@ -2,8 +2,7 @@
import * as React from 'react';
import StandardFieldComponent from "./StandardFieldComponent";
import {observer} from 'mobx-react';
import {Field} from "../../../../types/mobx-react-form";
import {injectIntl, InjectedIntl} from 'react-intl';
import {InjectedIntl, injectIntl} from 'react-intl';
export interface LabeledFieldComponentProps

View file

@ -3,7 +3,7 @@ import * as React from 'react';
import 'jest';
import ProgressableButton from './ProgressableButton'
import toJson from 'enzyme-to-json';
import {shallow, mount} from 'enzyme';
import {mount, shallow} from 'enzyme';
describe('ProgressableButton', () => {
test('Basic title button works', () => {

View file

@ -1,10 +1,7 @@
// License: LGPL-3.0-or-later
import * as React from 'react';
import {observer, Provider} from 'mobx-react';
import { IntlProvider, addLocaleData} from 'react-intl';
const enLocaleData = require('react-intl/locale-data/en');
const deLocaleData = require('react-intl/locale-data/de');
const I18n = require('i18n')
import {addLocaleData, IntlProvider} from 'react-intl';
import {convert} from 'dotize'
import {ApiManager} from "../../lib/api_manager";
import {APIS} from "../../../api";
@ -12,6 +9,10 @@ import {CSRFInterceptor} from "../../lib/csrf_interceptor";
import * as CustomAPIS from "../../lib/apis"
const enLocaleData = require('react-intl/locale-data/en');
const deLocaleData = require('react-intl/locale-data/de');
const I18n = require('i18n')
addLocaleData([...enLocaleData, ...deLocaleData])
interface RootProps

View file

@ -1,8 +1,7 @@
// License: LGPL-3.0-or-later
import * as React from 'react';
import 'jest';
import {shallow,render} from 'enzyme'
const TestRenderer = require('react-test-renderer')
import {shallow} from 'enzyme'
import StandardFieldComponent from './StandardFieldComponent'
import toJson from 'enzyme-to-json';

View file

@ -1,7 +1,6 @@
// License: LGPL-3.0-or-later
import * as React from 'react';
import {observer} from "mobx-react";
import * as _ from 'lodash'
import {Field} from "../../../../types/mobx-react-form";
import LabeledFieldComponent from "./LabeledFieldComponent";
import {injectIntl, InjectedIntl} from 'react-intl';

View file

@ -4,7 +4,6 @@ import * as RAT from "react-aria-tabpanel";
import {TabManager} from "./manager";
var PropTypes = require('prop-types');
var innerCreateManager = require('react-aria-tabpanel/lib/createManager');
var specialAssign = require('react-aria-tabpanel/lib/specialAssign');
interface AddManagerInterface {
@ -33,12 +32,6 @@ export class ManagedWrapper extends RAT.Wrapper<AddManagerInterface>
this.manager = this.props.manager
}
componentWillMount(){
console.log('seomte')
}
render() {
var props = this.props;
var elProps = {};

View file

@ -3,11 +3,8 @@ import * as React from 'react';
import 'jest';
jest.useFakeTimers()
import NonprofitInfoForm, * as NIF from './NonprofitInfoForm'
import {runInAction} from 'mobx'
import {Field, FieldDefinition, Form} from "mobx-react-form";
import {mount, ReactWrapper} from 'enzyme'
import * as Component from "./NonprofitInfoPanel";
import {mountWithIntl} from "../../lib/tests/helpers";
import { ReactWrapper} from 'enzyme'
import {HoudiniForm} from "../../lib/houdini_form";

View file

@ -3,9 +3,9 @@ import * as React from 'react';
import 'jest';
import {Field, FieldDefinition, Form} from "mobx-react-form";
import { Form} from "mobx-react-form";
import {mountWithIntl, shallowWithIntl} from "../../lib/tests/helpers";
import { shallowWithIntl} from "../../lib/tests/helpers";
import {HoudiniForm} from "../../lib/houdini_form";
import {WizardState, WizardTabPanelState} from "../common/wizard/wizard_state";

View file

@ -1,17 +1,13 @@
// License: LGPL-3.0-or-later
import * as React from 'react';
import {WizardPanel, WizardPanelProps, WizardTabPanelProps} from "../common/wizard/WizardPanel";
import {WizardPanel, WizardTabPanelProps} from "../common/wizard/WizardPanel";
import {Form, Field, FieldHooks} from 'mobx-react-form'
import { Field} from 'mobx-react-form'
import { inject, observer } from 'mobx-react';
import { action, computed } from 'mobx';
import {WizardState, WizardTabPanelState} from "../common/wizard/wizard_state";
import { observer } from 'mobx-react';
import { computed } from 'mobx';
import { WizardTabPanelState} from "../common/wizard/wizard_state";
import {InjectedIntlProps, injectIntl, InjectedIntl} from 'react-intl';
import {ThreeColumnFields, TwoColumnFields} from "../common/layout";
import {BasicField} from "../common/fields";
import {Validations} from "../../lib/vjf_rules";
import NonprofitInfoForm from "./NonprofitInfoForm";
export interface NonprofitInfoPanelProps extends WizardTabPanelProps

View file

@ -2,7 +2,6 @@
import * as React from 'react';
import RegistrationWizard from "./RegistrationWizard";
import {configure} from 'mobx'
import {observer} from 'mobx-react';
import {InjectedIntlProps, injectIntl, InjectedIntl, FormattedMessage} from 'react-intl';

View file

@ -21,7 +21,6 @@ import {initializationDefinition} from "../../../../types/mobx-react-form";
import {ApiManager} from "../../lib/api_manager";
import {HoudiniForm, StaticFormToErrorAndBackConverter} from "../../lib/houdini_form";
import {WebUserSignInOut} from "../../lib/api/sign_in";
import {Validations} from "../../lib/vjf_rules";
import * as NonprofitInfoForm from "./NonprofitInfoForm";
import * as UserInfoForm from "./UserInfoForm";

View file

@ -3,11 +3,11 @@ import * as React from 'react';
import 'jest';
import {Field, FieldDefinition, Form} from "mobx-react-form";
import {Form} from "mobx-react-form";
import {mountWithIntl, shallowWithIntl} from "../../lib/tests/helpers";
import {shallowWithIntl} from "../../lib/tests/helpers";
import {HoudiniForm} from "../../lib/houdini_form";
import {WizardState, WizardTabPanelState} from "../common/wizard/wizard_state";
import {WizardState} from "../common/wizard/wizard_state";
import UserInfoPanel from "./UserInfoPanel";
import toJson from 'enzyme-to-json';

View file

@ -1,7 +1,5 @@
// License: LGPL-3.0-or-later
import * as $ from 'jquery';
import * as models from "../../../api/model/models";
import {Configuration} from "../../../api/configuration";
export class WebUserSignInOut {

View file

@ -1,6 +1,7 @@
// License: LGPL-3.0-or-later
import {ApiManager, ApiMissingException} from "./api_manager";
import 'jest';
describe('ApiManager', () => {
class A{}

View file

@ -1,10 +1,9 @@
// License: LGPL-3.0-or-later
import {Field, Form} from "mobx-react-form";
import {observable, action, runInAction, computed, IValueDidChange} from 'mobx'
import validator = require("validator")
import {action, computed, IValueDidChange, observable, runInAction} from 'mobx'
import * as _ from 'lodash'
import {ValidationErrorsException} from "../../api";
import {initializationDefinition} from "../../../types/mobx-react-form";
import validator = require("validator");
export class HoudiniForm extends Form {

View file

@ -1,7 +1,7 @@
// License: LGPL-3.0-or-later
import * as React from 'react';
import {IntlProvider, intlShape} from 'react-intl';
import { mount, shallow, ShallowRendererProps, MountRendererProps, ShallowWrapper } from 'enzyme';
import {mount, MountRendererProps, shallow, ShallowRendererProps, ShallowWrapper} from 'enzyme';
// Create the IntlProvider to retrieve context for wrapping around.
const intlProvider = new IntlProvider({ locale: 'en'}, {});