Skip to content

Commit

Permalink
#289 Icon: Quit default export
Browse files Browse the repository at this point in the history
  • Loading branch information
zaki-yama committed Jul 9, 2019
1 parent 617903a commit 581065a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/scripts/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, ReactNode, ButtonHTMLAttributes } from 'react';
import classnames from 'classnames';
import Icon from './Icon';
import { Icon } from './Icon';
import { Spinner } from './Spinner';

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/DateInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import moment from 'moment';
import autoAlign from './AutoAlign';
import { FormElement } from './FormElement';
import Input from './Input';
import Icon from './Icon';
import { Icon } from './Icon';
import Datepicker from './Datepicker';
import { uuid, isElInChildren, registerStyle } from './util';

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/DropdownMenu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from './Icon';
import { Icon } from './Icon';
import autoAlign from './AutoAlign';
import { PicklistItem } from './Picklist';

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export type IconState = {
iconColor?: string;
};

export default class Icon extends Component<
export class Icon extends Component<
IconProps & SVGAttributes<SVGElement>,
IconState
> {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import keycoder from 'keycoder';
import Icon from './Icon';
import { Icon } from './Icon';
import { FormElement } from './FormElement';
import { Text } from './Text';
import { uuid, registerStyle } from './util';
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from 'classnames';
import autoAlign from './AutoAlign';
import { FormElement } from './FormElement';
import Input from './Input';
import Icon from './Icon';
import { Icon } from './Icon';
import { Spinner } from './Spinner';
import Pill from './Pill';
import DropdownButton from './DropdownButton';
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Button } from './Button';
import Icon from './Icon';
import { Icon } from './Icon';

const NOTIFICATION_TYPES = ['alert', 'toast'];

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Picklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { FormElement } from './FormElement';
import Icon from './Icon';
import { Icon } from './Icon';
import { Button } from './Button';
import DropdownMenu, { DropdownMenuItem } from './DropdownMenu';
import { uuid, isElInChildren } from './util';
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Pill.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';

import Icon from './Icon';
import { Icon } from './Icon';
import { Button } from './Button';

class Pill extends Component {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/SalesPath.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from './Icon';
import { Icon } from './Icon';

class SalesPath extends React.Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';

import Icon from './Icon';
import { Icon } from './Icon';

export class TableHeader extends Component {
renderBaseHeaderRow() {
Expand Down
3 changes: 1 addition & 2 deletions src/scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// TODO: revert
// changed
// because of https://github.com/gaearon/react-hot-loader/issues/158
import Icon from './Icon';
import DropdownButton from './DropdownButton';
import DropdownMenu, {
DropdownMenuItem,
Expand Down Expand Up @@ -47,7 +46,6 @@ export {
Notification,
Alert,
Toast,
Icon,
DropdownButton,
DropdownMenu,
DropdownMenuItem,
Expand Down Expand Up @@ -103,6 +101,7 @@ export * from './BreadCrumbs';
export * from './Button';
export * from './ButtonGroup';
export * from './Container';
export * from './Icon';
export * from './MediaObject';
export * from './Radio';
export * from './RadioGroup';
Expand Down
2 changes: 1 addition & 1 deletion stories/IconStories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { text, select } from '@storybook/addon-knobs';
import { Icon } from '../src/scripts';
import {
Icon,
IconCategory,
IconContainer,
IconSize,
Expand Down
2 changes: 1 addition & 1 deletion test/button-spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ButtonIconAlign,
ButtonIconSize,
} from '../src/scripts/Button';
import Icon from '../src/scripts/Icon';
import { Icon } from '../src/scripts/Icon';

describe('Button', () => {
it('should render button with className', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/icon-spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'power-assert';
import React from 'react';
import { shallow } from 'enzyme';

import Icon from '../src/scripts/Icon';
import { Icon } from '../src/scripts/Icon';

describe('Icon', () => {
it('should render icon', () => {
Expand Down

0 comments on commit 581065a

Please sign in to comment.