- Cleanup
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getProfileAvatarUrl } from '../selectors/profile.js';
|
||||
import { getProfileAvatarUrl } from '../../../selectors/profile.js';
|
||||
|
||||
import HeaderContentRight from './HeaderContentRight.js';
|
||||
import UserProfileButton from './UserProfileButton.js';
|
||||
|
||||
const matchStateToProps = (state) => ({
|
||||
avatarUrl: getProfileAvatarUrl(state),
|
||||
});
|
||||
|
||||
export default connect(matchStateToProps, null)(HeaderContentRight);
|
||||
export default connect(matchStateToProps, null)(UserProfileButton);
|
||||
|
||||
@@ -20,16 +20,16 @@ export default function UserProfileButton({ avatarUrl, navigation }) {
|
||||
<Image source={{ uri: avatarUrl }} />
|
||||
</View>
|
||||
) : (
|
||||
<Icon name="ei-user" type="evilicons" size={28} />;
|
||||
<Icon name="ei-user" type="evilicons" size={28} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
HeaderContentRight.propTypes = {
|
||||
UserProfileButton.propTypes = {
|
||||
avatarUrl: PropTypes.string,
|
||||
};
|
||||
|
||||
HeaderContentRight.propTypes = {
|
||||
UserProfileButton.propTypes = {
|
||||
avatarUrl: null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user