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
14c0f478
Commit
14c0f478
authored
Jun 16, 2017
by
Wietse Kuipers
Browse files
Unbreak navigation
parent
83b803ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/components/Sidebar.js
View file @
14c0f478
...
...
@@ -7,6 +7,7 @@ import Icon from 'react-native-vector-icons/MaterialIcons';
import
{
colors
}
from
'
../style
'
;
import
styles
from
'
./style/sidebar
'
;
import
*
as
navigationActions
from
'
../actions/navigation
'
;
import
*
as
loginActions
from
'
../actions/login
'
;
import
{
loadProfile
}
from
'
../actions/profile
'
;
...
...
@@ -91,6 +92,8 @@ Sidebar.propTypes = {
token
:
PropTypes
.
string
.
isRequired
,
logout
:
PropTypes
.
func
.
isRequired
,
loadProfile
:
PropTypes
.
func
.
isRequired
,
// eslint-disable-next-line react/no-unused-prop-types
navigate
:
PropTypes
.
func
.
isRequired
,
};
const
mapStateToProps
=
state
=>
({
...
...
@@ -101,6 +104,7 @@ const mapStateToProps = state => ({
});
const
mapDispatchToProps
=
dispatch
=>
({
navigate
:
(
scene
,
newSection
=
false
)
=>
dispatch
(
navigationActions
.
navigate
(
scene
,
newSection
)),
logout
:
()
=>
dispatch
(
loginActions
.
logout
()),
loadProfile
:
token
=>
dispatch
(
loadProfile
(
token
)),
});
...
...
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