Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
16b867de
Verified
Commit
16b867de
authored
Aug 29, 2018
by
Sébastiaan Versteeg
Browse files
Remove redux from MemberView component
parent
404e7514
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/ui/components/memberView/MemberView.js
View file @
16b867de
import
React
from
'
react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
ImageBackground
,
...
...
@@ -12,7 +11,6 @@ import LinearGradient from 'react-native-linear-gradient';
import
styles
from
'
./style/MemberView
'
;
import
SquareView
from
'
./SquareView
'
;
import
*
as
profileActions
from
'
../../../actions/profile
'
;
const
MemberView
=
props
=>
(
<
SquareView
style
=
{
props
.
style
}
size
=
{
props
.
size
}
>
...
...
@@ -48,8 +46,4 @@ MemberView.defaultProps = {
style
:
defaultStyles
,
};
const
mapDispatchToProps
=
dispatch
=>
({
loadProfile
:
pk
=>
dispatch
(
profileActions
.
profile
(
pk
)),
});
export
default
connect
(()
=>
({}),
mapDispatchToProps
)(
MemberView
);
export
default
MemberView
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment