Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(core): export translatable (#1351)
Browse files Browse the repository at this point in the history
* refactor: move translatable to core

* feat(core): export translatable

* refactor(dom): update import for translatable

* feat(dom): reexport translatable

* feat(native): reexport translatable
  • Loading branch information
samouss authored Jun 19, 2018
1 parent 971dca6 commit 6d5a89d
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions packages/react-instantsearch-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { default as createConnector } from './core/createConnector';
// Utils
export { HIGHLIGHT_TAGS } from './core/highlight';
export { default as version } from './core/version';
export { default as translatable } from './core/translatable';

// Widgets
export { default as Configure } from './widgets/Configure';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import translatable from '../core/translatable';
import Link from './Link';

const cx = createClassNames('Breadcrumb');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import translatable from '../core/translatable';

const cx = createClassNames('ClearRefinements');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import translatable from '../core/translatable';

const cx = createClassNames('CurrentRefinements');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { pick } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import translatable from '../core/translatable';
import List from './List';
import Link from './Link';

Expand Down
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 translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('InfiniteHits');
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-dom/src/components/Menu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pick } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import Highlight from '../widgets/Highlight';
import List from './List';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { find } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('MenuSelect');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import List from './List';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { range } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames, capitalize } from '../core/utils';
import LinkList from './LinkList';

Expand Down
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 translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('PoweredBy');
Expand Down
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 translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('RangeInput');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { find, fill } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('RatingMenu');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pick } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';
import Highlight from '../widgets/Highlight';
import List from './List';
Expand Down
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 translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('SearchBox');
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-dom/src/components/Stats.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 translatable from '../core/translatable';
import { translatable } from 'react-instantsearch-core';
import { createClassNames } from '../core/utils';

const cx = createClassNames('Stats');
Expand Down
1 change: 1 addition & 0 deletions packages/react-instantsearch-dom/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Core
export { createConnector } from 'react-instantsearch-core';
export { HIGHLIGHT_TAGS } from 'react-instantsearch-core';
export { translatable } from 'react-instantsearch-core';

// Widget
export { Configure } from 'react-instantsearch-core';
Expand Down
1 change: 1 addition & 0 deletions packages/react-instantsearch-native/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Core
export { createConnector } from 'react-instantsearch-core';
export { HIGHLIGHT_TAGS } from 'react-instantsearch-core';
export { translatable } from 'react-instantsearch-core';

// Widget
export { Configure } from 'react-instantsearch-core';
Expand Down

0 comments on commit 6d5a89d

Please sign in to comment.