Skip to content

Commit

Permalink
Set displayName on +BaseArticleSaveButton
Browse files Browse the repository at this point in the history
  • Loading branch information
benbarnett authored and Dan Searle committed Nov 13, 2018
1 parent 456b588 commit 6e673c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/x-article-save-button/src/ArticleSaveButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { withActions } from '@financial-times/x-interaction';
import articleSaveStyles from './ArticleSaveButton.scss';
import classNames from 'classnames';

export const articleSaveActions = withActions(initialProps => ({
const articleSaveActions = withActions(initialProps => ({
triggerSave(rootElement) {
return currentProps => {
const detail = {
Expand All @@ -27,7 +27,7 @@ export const articleSaveActions = withActions(initialProps => ({
}
}));

export const BaseArticleSaveButton = props => {
const BaseArticleSaveButton = props => {
const getLabel = props => {
if (props.saved) {
return 'Saved to myFT';
Expand Down Expand Up @@ -66,4 +66,8 @@ export const BaseArticleSaveButton = props => {
);
};

export const ArticleSaveButton = articleSaveActions(BaseArticleSaveButton);
BaseArticleSaveButton.displayName = 'BaseArticleSaveButton';

const ArticleSaveButton = articleSaveActions(BaseArticleSaveButton);

export { ArticleSaveButton, articleSaveActions, baseArticleSaveButton };

0 comments on commit 6e673c5

Please sign in to comment.