- Cleanup

This commit is contained in:
2019-08-06 01:36:08 -04:00
parent 6e71ac688a
commit b8ddc54b99
43 changed files with 361 additions and 170 deletions

View File

@@ -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);

View File

@@ -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,
};