Commit 973c4471 authored by AuckeBos's avatar AuckeBos
Browse files

More lint fixes, pff

parents ad76bcde 7e90de04
...@@ -2,7 +2,6 @@ import { AsyncStorage } from 'react-native'; ...@@ -2,7 +2,6 @@ import { AsyncStorage } from 'react-native';
import * as types from './actionTypes'; import * as types from './actionTypes';
const TOKENKEY = '@MyStore:token'; const TOKENKEY = '@MyStore:token';
export function calendarRetrieved(eventList) { export function calendarRetrieved(eventList) {
return { return {
type: types.CALENDARRETREIVED, type: types.CALENDARRETREIVED,
......
...@@ -32,7 +32,14 @@ const Calendar = (props) => { ...@@ -32,7 +32,14 @@ const Calendar = (props) => {
}; };
Calendar.propTypes = { 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, calendarFetched: React.PropTypes.bool.isRequired,
retrieveCalendar: React.PropTypes.func.isRequired, retrieveCalendar: React.PropTypes.func.isRequired,
}; };
......
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;
...@@ -12,7 +12,14 @@ const EventCard = props => ...@@ -12,7 +12,14 @@ const EventCard = props =>
; ;
EventCard.propTypes = { 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); export default connect(() => ({}), () => ({}))(EventCard);
import * as types from '../actions/actionTypes'; import * as types from '../actions/actionTypes';
const initialState = { const initialState = {
eventList: '', eventList: [],
calendarFetched: false, calendarFetched: false,
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment