Skip to content

Commit

Permalink
Eliminate default imports for React
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Jan 19, 2018
1 parent 07f1b9b commit 10c3429
Show file tree
Hide file tree
Showing 229 changed files with 466 additions and 412 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {storiesOf} from '@storybook/react'
import {Alert, Table, Well} from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {storiesOf} from '@storybook/react'
import {Badge, Nav, NavItem, Button, Table, Well} from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Breadcrumb, Well } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf, action } from '@storybook/react'
import { Button, ButtonToolbar, ButtonGroup,
DropdownButton, MenuItem, Table, Well } from 'react-bootstrap'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global jest describe it expect */

import React from 'react'
import ReactDOMServer from 'react-dom/server'
import * as React from 'react'
import * as ReactDOMServer from 'react-dom/server'
import DraggableVersionPanels, {Item, DragHandle, tooltipSort} from '.'
import {Button, ListGroup, ListGroupItem, OverlayTrigger} from 'react-bootstrap'
import {Icon, LockIcon} from '../../components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import {FromProjectVersionType} from '../../utils/prop-types-util'
import {Icon, LockIcon} from '../../components'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {storiesOf, action} from '@storybook/react'
import {DropdownButton, MenuItem, Table, Label, Well} from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { EditableText } from '../'
import { Well, Table } from 'react-bootstrap'
import PropTypes from "prop-types";
import * as PropTypes from "prop-types";

storiesOf('EditableText', module)
.add('editing', () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import {Row} from 'react-bootstrap'
import {TextInput} from '../../components'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Col, ControlLabel, FormGroup, FormControl, Form, InputGroup,
Checkbox, Radio, Well } from 'react-bootstrap'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {storiesOf} from '@storybook/react'
import {Icon} from '../'
import iconList from '../Icon/list'
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Icon/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { isUndefined } from 'lodash'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react'
import * as React from 'react'
import { Component } from 'react'

class Icons extends Component {
render () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Label, Well, Table } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Link } from '../'
import { Well, Table } from 'react-bootstrap'
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Link/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { Link as RouterLink } from 'react-router'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {storiesOf} from '@storybook/react'
import {ListGroup, ListGroupItem, Well, Table} from 'react-bootstrap'

Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Loader/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import Loading from 'react-loading'

const Loader = ({ className = 'loader' }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { LoaderText } from '../'
import { Well } from 'react-bootstrap'
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/LoaderText/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { Loader } from '../../components'

const LoaderText = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global jest describe it expect */

import React from 'react'
import ReactDOMServer from 'react-dom/server'
import * as React from 'react'
import * as ReactDOMServer from 'react-dom/server'
import LockIcon from '.'
import {Icon} from '../../components'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import {Tooltip, OverlayTrigger} from 'react-bootstrap'
import {Icon} from '../../components'
import {entityStatusPropType} from '../../utils/prop-types-util'
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/LogoLoader/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import cx from 'classnames'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import {
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Modal/ModalBody.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'

const ModalBody = ({
children,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'

const ModalFooter = ({
children,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'

const ModalHeader = ({
children,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'

const ModalTitle = ({
children,
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Modal/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { Modal as OverlayModal } from 'react-overlays'
import ModalHeader from './ModalHeader'
import ModalTitle from './ModalTitle'
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Nav/NavIcon.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { Icon } from '../../components'

/**
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Nav/NavItem.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import NavIcon from './NavIcon'
import { LogoLoader, Link } from '../../components'
/**
Expand Down
4 changes: 2 additions & 2 deletions server/zanata-frontend/src/app/components/Nav/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import NavItem from './NavItem'
import { getDswid } from '../../utils/UrlHelper'
import { remove } from 'lodash'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import Notification from './component'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import { Icon, Modal } from '../../components'
import { isEmpty } from 'lodash'
import { Button, ButtonGroup, Row } from 'react-bootstrap'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf, action } from '@storybook/react'
import { Pagination, Well } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Panel, Well, Accordion } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import {
Button, ProgressBar
} from 'react-bootstrap'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global jest describe it expect */

import React from 'react'
import ReactDOMServer from 'react-dom/server'
import * as React from 'react'
import * as ReactDOMServer from 'react-dom/server'
import CancellableProgressBar from './CancellableProgressBar'
import { ProgressBar } from 'react-bootstrap'
import { isProcessEnded } from '../../utils/EnumValueUtils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { ProgressBar, Well, Table } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf, action } from '@storybook/react'
import { Button } from 'react-bootstrap'
import { Icon, TextInput } from '../../components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import { Form, FormGroup, ControlLabel, Button, OverlayTrigger, Tooltip }
from 'react-bootstrap'
import { Icon, TextInput, SelectableDropdown } from '../../components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import React from 'react'
import ReactDOMServer from 'react-dom/server'
import * as React from 'react'
import * as ReactDOMServer from 'react-dom/server'
import SelectableDropdown from '.'
import {MenuItem, DropdownButton} from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import {MenuItem, DropdownButton} from 'react-bootstrap'
import {isEqual} from 'lodash'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import Sidebar from '.'
import AboutPage from '../../containers/ProjectVersion/AboutPage'
Expand Down
3 changes: 2 additions & 1 deletion server/zanata-frontend/src/app/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {Component} from 'react'
import * as React from 'react'
import { Component } from 'react'
import { Button, DropdownButton, MenuItem, ProgressBar,
Nav, NavItem, Well } from 'react-bootstrap'
import { Icon } from '../../components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import {size} from 'lodash'
import {connect} from 'react-redux'
import {Icon, Modal} from '../index'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Table, Well } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf, action } from '@storybook/react'
import { Tabs, Tab, Row, Col, Nav, NavItem, Well } from 'react-bootstrap'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf, action } from '@storybook/react'
import { TextInput } from '../'
import { Well } from 'react-bootstrap'
Expand Down
7 changes: 4 additions & 3 deletions server/zanata-frontend/src/app/components/TextInput/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import * as ReactDOM from 'react-dom'
import TextareaAutosize from 'react-textarea-autosize'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { Button, ButtonToolbar, OverlayTrigger,
Tooltip, Well } from 'react-bootstrap'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import * as React from 'react'
import { Component } from 'react'
import * as PropTypes from 'prop-types'
import { storiesOf, action } from '@storybook/react'
import RealTriCheckbox from '.'
import TriCheckboxGroup from './TriCheckboxGroup'
Expand Down
Loading

0 comments on commit 10c3429

Please sign in to comment.