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
7166c451
Commit
7166c451
authored
Dec 20, 2017
by
Jen Dusseljee
Browse files
Made event cards tappable
parent
01bc7787
Changes
1
Show whitespace changes
Inline
Side-by-side
app/components/EventDetailCard.js
View file @
7166c451
...
...
@@ -33,6 +33,9 @@ const getInfo = (event) => {
};
const
EventDetailCard
=
props
=>
(
<
TouchableOpacity
onPress
=
{()
=>
props
.
loadEvent
(
props
.
event
.
pk
,
props
.
token
)}
>
<
View
style
=
{
styles
.
card
}
>
<
Text
style
=
{
styles
.
eventTitle
}
>
{
props
.
event
.
title
}
<
/Text
>
{
getInfo
(
props
.
event
)}
...
...
@@ -65,6 +68,7 @@ const EventDetailCard = props => (
)
}
<
/View
>
<
/TouchableOpacity
>
);
EventDetailCard
.
propTypes
=
{
...
...
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