Verified Commit 16b867de authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Remove redux from MemberView component

parent 404e7514
import React from 'react'; import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { import {
ImageBackground, ImageBackground,
...@@ -12,7 +11,6 @@ import LinearGradient from 'react-native-linear-gradient'; ...@@ -12,7 +11,6 @@ import LinearGradient from 'react-native-linear-gradient';
import styles from './style/MemberView'; import styles from './style/MemberView';
import SquareView from './SquareView'; import SquareView from './SquareView';
import * as profileActions from '../../../actions/profile';
const MemberView = props => ( const MemberView = props => (
<SquareView style={props.style} size={props.size}> <SquareView style={props.style} size={props.size}>
...@@ -48,8 +46,4 @@ MemberView.defaultProps = { ...@@ -48,8 +46,4 @@ MemberView.defaultProps = {
style: defaultStyles, style: defaultStyles,
}; };
const mapDispatchToProps = dispatch => ({ export default MemberView;
loadProfile: pk => dispatch(profileActions.profile(pk)),
});
export default connect(() => ({}), mapDispatchToProps)(MemberView);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment