Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre No毛l <petersg83@gmail.com>
  • Loading branch information
petersg83 committed Sep 28, 2020
1 parent ab25556 commit 878a8bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@ const selectNotificationProviderDomain = () => state => state.get('notification'
* Other specific selectors
*/


/**
* Default selector used by NotificationProvider
*/

const selectNotificationProvider = () => createSelector(
selectNotificationProviderDomain(),
(notificationProviderState) => notificationProviderState.toJS()
);
const selectNotificationProvider = () =>
createSelector(selectNotificationProviderDomain(), notificationProviderState =>
notificationProviderState.toJS()
);

const selectNotifications = () => createSelector(
selectNotificationProviderDomain(),
(notificationProviderState) => notificationProviderState.get('notifications')
);
const selectNotifications = () =>
createSelector(selectNotificationProviderDomain(), notificationProviderState =>
notificationProviderState.get('notifications')
);

export default selectNotificationProvider;
export {
selectNotificationProviderDomain,
selectNotifications,
};
export { selectNotificationProviderDomain, selectNotifications };
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import selectHomePage from './selectors';
import saga from './saga';

export class HomePage extends React.Component {
static contextType = GlobalContext;

componentDidMount() {
this.props.getDocInfos();
}
Expand Down Expand Up @@ -146,8 +148,6 @@ export class HomePage extends React.Component {
);
};

static contextType = GlobalContext;

render() {
const {
docVersions,
Expand Down

0 comments on commit 878a8bf

Please sign in to comment.