refactor: resolved eslint issues after master branch merge

This commit is contained in:
Bilal Qamar
2022-08-24 15:45:54 +05:00
committed by Thomas Tracy
parent 8bb7dd7430
commit 759428dd3e

View File

@@ -1,3 +1,4 @@
/* eslint-disable react/jsx-no-constructed-context-values */
import { mount } from 'enzyme';
import PropTypes from 'prop-types';
import React from 'react';
@@ -47,20 +48,22 @@ configureI18n({
messages,
});
const SocialLinksWrapper = props => (
<AppContext.Provider
value={{
authenticatedUser: { userId: null, username: null, administrator: false },
config: getConfig(),
}}
>
<IntlProvider locale="en">
<Provider store={props.store}>
<SocialLinks {...props} />
</Provider>
</IntlProvider>
</AppContext.Provider>
);
function SocialLinksWrapper(props) {
return (
<AppContext.Provider
value={{
authenticatedUser: { userId: null, username: null, administrator: false },
config: getConfig(),
}}
>
<IntlProvider locale="en">
<Provider store={props.store}>
<SocialLinks {...props} />
</Provider>
</IntlProvider>
</AppContext.Provider>
);
}
SocialLinksWrapper.defaultProps = {
store: mockStore(savingEditedBio),