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
973c4471
Commit
973c4471
authored
Apr 19, 2017
by
AuckeBos
Browse files
More lint fixes, pff
parents
ad76bcde
7e90de04
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/actions/calendar.js
View file @
973c4471
...
...
@@ -2,7 +2,6 @@ import { AsyncStorage } from 'react-native';
import
*
as
types
from
'
./actionTypes
'
;
const
TOKENKEY
=
'
@MyStore:token
'
;
export
function
calendarRetrieved
(
eventList
)
{
return
{
type
:
types
.
CALENDARRETREIVED
,
...
...
app/components/Calendar.js
View file @
973c4471
...
...
@@ -32,7 +32,14 @@ const Calendar = (props) => {
};
Calendar
.
propTypes
=
{
eventList
:
React
.
PropTypes
.
arrayOf
(
EventCard
).
isRequired
,
eventList
:
React
.
PropTypes
.
arrayOf
(
React
.
PropTypes
.
shape
({
title
:
React
.
PropTypes
.
string
,
description
:
React
.
PropTypes
.
string
,
start
:
React
.
PropTypes
.
string
,
location
:
React
.
PropTypes
.
string
,
price
:
React
.
PropTypes
.
string
,
id
:
React
.
PropTypes
.
number
,
})).
isRequired
,
calendarFetched
:
React
.
PropTypes
.
bool
.
isRequired
,
retrieveCalendar
:
React
.
PropTypes
.
func
.
isRequired
,
};
...
...
app/components/Event.js
0 → 100644
View file @
973c4471
import
React
from
'
react
'
;
import
{
View
,
Text
}
from
'
react-native
'
;
const
Event
=
event
=>
<
View
>
<
Text
>
<
b
>
{
event
.
title
}
<
/b> </
Text
>
<
Text
>
{
new
Date
(
event
.
start
).
toISOString
().
substring
(
0
,
10
)}
<
/Text
>
<
i
>
{
event
.
description
}
<
/i
>
<
Text
>-----------------------------------------<
/Text
>
<
/View
>
;
export
default
Event
;
app/components/EventCard.js
View file @
973c4471
...
...
@@ -12,7 +12,14 @@ const EventCard = props =>
;
EventCard
.
propTypes
=
{
event
:
React
.
PropTypes
.
objectOf
(
EventCard
).
isRequired
,
event
:
React
.
PropTypes
.
shape
({
title
:
React
.
PropTypes
.
string
,
description
:
React
.
PropTypes
.
string
,
start
:
React
.
PropTypes
.
string
,
location
:
React
.
PropTypes
.
string
,
price
:
React
.
PropTypes
.
string
,
id
:
React
.
PropTypes
.
number
,
}).
isRequired
,
};
export
default
connect
(()
=>
({}),
()
=>
({}))(
EventCard
);
app/reducers/calendar.js
View file @
973c4471
import
*
as
types
from
'
../actions/actionTypes
'
;
const
initialState
=
{
eventList
:
''
,
eventList
:
[]
,
calendarFetched
:
false
,
};
...
...
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