Skip to content

Commit d8b5e91

Browse files
committed
Fix merge conflict
2 parents 486e4d0 + af88f0f commit d8b5e91

File tree

19 files changed

+208
-418
lines changed

19 files changed

+208
-418
lines changed

‎client/frontend/App.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class App extends React.Component{
3636
initialRoute={{ name: 'Welcome' }}
3737
renderScene={ this.renderScene }
3838
configureScene={(route) => {
39-
if (route.sceneConfig) {
40-
return route.sceneConfig;
41-
}
39+
if(route.name === 'Welcome') {
40+
return Navigator.SceneConfigs.SwipeFromLeft;
41+
}
4242
return Navigator.SceneConfigs.FloatFromBottom;
4343
}}
4444
/>

‎client/frontend/components/ActivityForm.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ class ActivityForm extends React.Component{
6363
});
6464
}
6565

66+
navigateBack(){
67+
this.props.navigator.push({
68+
name: 'Welcome',
69+
});
70+
}
71+
6672
toggleModal(){
6773
this.setState({ modalVisible: false });
6874
}
@@ -83,7 +89,7 @@ class ActivityForm extends React.Component{
8389
</View>
8490
</TouchableHighlight>
8591
</Modal>
86-
<SwipeableCard onSwipe={() => this.handleSubmit()}>
92+
<SwipeableCard onSwipe={() => this.handleSubmit()} swipeBack={() => this.navigateBack()}>
8793
<Card>
8894
<CardSection>
8995
<BigButton

‎client/frontend/components/ShowPage.js‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,30 @@ class ShowPage extends React.Component {
3030
addEventToCalendar() {
3131
RNCalendarEvents.findCalendars().then(response => {
3232
let calendarId = response[0].id;
33-
RNCalendarEvents.saveEvent(this.props.name, {
33+
RNCalendarEvents.saveEvent(this.props.place.name, {
3434
calendarId: calendarId,
35-
startDate: parseDate(this.props.date_time.start),
36-
endDate: parseDate(this.props.date_time.end)
35+
startDate: this.parseDate(this.props.place.date_time.start),
36+
endDate: this.parseDate(this.props.place.date_time.end)
3737
});
3838
});
3939
}
4040

4141
parseDate(time) {
4242
// '2018-04-29T19:26:00.000Z'
4343
// '2018-04-29T20:26:00.000Z'
44-
return "${this.props.date}T${time}.000Z";
44+
let months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
45+
let dates = this.props.place.date.split("-");
46+
47+
let month = months[dates[1].slice(1,2) - 1];
48+
let day = dates[2];
49+
let year = dates[0];
50+
51+
// "July 21, 1983 01:15:00"
52+
53+
let date = new Date(`${month} ${day}, ${year} ${time}`);
54+
let utc = date.toISOString();
55+
56+
return utc;
4557
}
4658

4759
submit(){
@@ -116,17 +128,17 @@ class ShowPage extends React.Component {
116128
/>
117129
<View style={styles.info}>
118130
<Text style={styles.title}>{place.name}</Text>
119-
<View style={{width: 70}}>
120-
<StarRating
131+
{place.rating
132+
&& <View style={{width: 70}}>
133+
<StarRating
121134
disabled={false}
122135
maxStars={5}
123136
disabled={true}
124137
starSize={20}
125138
style={{width: 70}}
126139
rating={place.rating}
127140
fullStarColor={'#FE5D26'}
128-
/>
129-
</View>
141+
/></View>}
130142
{place.formatted_address
131143
&& <Text style={styles.body}>{place.formatted_address}</Text>}
132144
{place.formatted_phone_number

‎client/frontend/components/WelcomePage.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class WelcomePage extends React.Component {
7575
let locationProps= { lat: this.state.lat,
7676
lng: this.state.lng,
7777
date: this.state.date};
78-
this.props.navigator.replace({
78+
this.props.navigator.push({
7979
name: 'Activity',
8080
passProps: {
8181
place: locationProps

‎client/frontend/components/common/Spinner.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const OurSpinner = ({ size,text }) => {
1212
textContent={"Building Your Itinerary..."}
1313
textStyle={{color: '#FE5D26',
1414
fontFamily: 'Helvetica Neue',
15-
marginBottom:400}}
15+
marginBottom:360}}
1616
overlayColor="#dddddd"/>
1717
</View>
1818
);

‎client/frontend/util/ItineraryUtil.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const fetchItinerary = (itinerary) => {
2-
let url = `http://localhost:3000/api/itineraries/getitinerary?lat=${itinerary.lat}&lon=${itinerary.lon}&bars=${itinerary.bars}&restaurants=${itinerary.restaurants}&nature=${itinerary.nature}&arts=${itinerary.arts}`;
2+
let url = `http://localhost:3000/api/itineraries/getitinerary?lat=${itinerary.lat}&lon=${itinerary.lon}&date=${itinerary.date}&bars=${itinerary.bars}&restaurants=${itinerary.restaurants}&nature=${itinerary.nature}&arts=${itinerary.arts}`;
33
return fetch(url, {
44
method: 'GET',
55
}).then(response => {

‎client/ios/Weekender/Images.xcassets/AppIcon.appiconset/Contents.json‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,77 @@
33
{
44
"size" : "20x20",
55
"idiom" : "iphone",
6+
<<<<<<< HEAD
67
"filename" : "map2.png",
8+
=======
9+
"filename" : "map-7.png",
10+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
711
"scale" : "2x"
812
},
913
{
1014
"size" : "20x20",
1115
"idiom" : "iphone",
16+
<<<<<<< HEAD
1217
"filename" : "map2-1.png",
18+
=======
19+
"filename" : "map-6.png",
20+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
1321
"scale" : "3x"
1422
},
1523
{
1624
"size" : "29x29",
1725
"idiom" : "iphone",
26+
<<<<<<< HEAD
1827
"filename" : "map2-2.png",
28+
=======
29+
"filename" : "map-5.png",
30+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
1931
"scale" : "2x"
2032
},
2133
{
2234
"size" : "29x29",
2335
"idiom" : "iphone",
36+
<<<<<<< HEAD
2437
"filename" : "map2-3.png",
38+
=======
39+
"filename" : "map-4.png",
40+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
2541
"scale" : "3x"
2642
},
2743
{
2844
"size" : "40x40",
2945
"idiom" : "iphone",
46+
<<<<<<< HEAD
3047
"filename" : "map2-5.png",
48+
=======
49+
"filename" : "map-3.png",
50+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
3151
"scale" : "2x"
3252
},
3353
{
3454
"size" : "40x40",
3555
"idiom" : "iphone",
56+
<<<<<<< HEAD
3657
"filename" : "map2-4.png",
58+
=======
59+
"filename" : "map-2.png",
60+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
3761
"scale" : "3x"
3862
},
3963
{
4064
"size" : "60x60",
4165
"idiom" : "iphone",
66+
<<<<<<< HEAD
4267
"filename" : "map2-7.png",
68+
=======
69+
"filename" : "map-1.png",
70+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
4371
"scale" : "2x"
4472
},
4573
{
4674
"size" : "60x60",
4775
"idiom" : "iphone",
76+
<<<<<<< HEAD
4877
"filename" : "map2-6.png",
4978
"scale" : "3x"
5079
},
@@ -142,6 +171,15 @@
142171
{
143172
"idiom" : "mac",
144173
"size" : "256x256",
174+
=======
175+
"filename" : "map.png",
176+
"scale" : "3x"
177+
},
178+
{
179+
"size" : "1024x1024",
180+
"idiom" : "ios-marketing",
181+
"filename" : "map-8.png",
182+
>>>>>>> af88f0f21a1f47f8685c1ca9401effbb0fa80c94
145183
"scale" : "1x"
146184
},
147185
{
13.1 KB
Loading
13.1 KB
Loading
13.1 KB
Loading

0 commit comments

Comments
 (0)