Skip to content
GitLab
Menu
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
adca1d9a
Verified
Commit
adca1d9a
authored
Feb 23, 2018
by
Sébastiaan Versteeg
Browse files
Fix the translation props
parent
7c5a1468
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/components/Profile.js
View file @
adca1d9a
...
...
@@ -253,9 +253,9 @@ class Profile extends Component {
onScroll
=
{
Animated
.
event
([{
nativeEvent
:
{
contentOffset
:
{
y
:
this
.
scrollY
}
}
}])}
>
<
View
style
=
{
styles
.
content
}
>
{
getDescription
(
this
.
props
.
profile
)}
{
getPersonalInfo
(
this
.
props
.
profile
)}
{
getAchievements
(
this
.
props
.
profile
)}
{
getDescription
(
this
.
props
.
profile
,
this
.
props
.
t
)}
{
getPersonalInfo
(
this
.
props
.
profile
,
this
.
props
.
t
)}
{
getAchievements
(
this
.
props
.
profile
,
this
.
props
.
t
)}
<
/View
>
<
/ScrollView
>
{
this
.
getAppbar
()}
...
...
app/components/Sidebar.js
View file @
adca1d9a
...
...
@@ -14,11 +14,11 @@ import * as profileActions from '../actions/profile';
const
background
=
require
(
'
../img/huygens.jpg
'
);
const
logoutPrompt
=
logout
=>
()
=>
Alert
.
alert
(
this
.
props
.
t
(
'
Log out?
'
),
this
.
props
.
t
(
'
Are you sure you want to log out?
'
),
[{
text
:
this
.
props
.
t
(
'
No
'
)
},
{
text
:
this
.
props
.
t
(
'
Yes
'
),
onPress
:
logout
},
const
logoutPrompt
=
props
=>
()
=>
Alert
.
alert
(
props
.
t
(
'
Log out?
'
),
props
.
t
(
'
Are you sure you want to log out?
'
),
[{
text
:
props
.
t
(
'
No
'
)
},
{
text
:
props
.
t
(
'
Yes
'
),
onPress
:
props
.
logout
},
],
);
...
...
@@ -39,7 +39,7 @@ const Sidebar = (props) => {
scene
:
'
eventList
'
,
},
{
onPress
:
logoutPrompt
(
props
.
logout
),
onPress
:
logoutPrompt
(
props
),
iconName
:
'
lock
'
,
text
:
props
.
t
(
'
Logout
'
),
style
:
{
...
...
@@ -99,6 +99,7 @@ Sidebar.propTypes = {
displayName
:
PropTypes
.
string
.
isRequired
,
photo
:
PropTypes
.
string
.
isRequired
,
token
:
PropTypes
.
string
.
isRequired
,
// eslint-disable-next-line react/no-unused-prop-types
logout
:
PropTypes
.
func
.
isRequired
,
loadProfile
:
PropTypes
.
func
.
isRequired
,
// eslint-disable-next-line react/no-unused-prop-types
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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