iceholidays-frontend 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/iceholidays/frontend/actiontext.scss +119 -0
- data/app/assets/stylesheets/iceholidays/frontend/application.sass.scss +968 -355
- data/app/assets/stylesheets/iceholidays/frontend/common.scss +159 -74
- data/app/assets/stylesheets/iceholidays/frontend/layout.scss +218 -125
- data/app/assets/stylesheets/iceholidays/frontend/utils/_antd_overrides.scss +22 -7
- data/app/assets/stylesheets/iceholidays/frontend/utils/_variables.scss +2 -1
- data/app/assets/stylesheets/iceholidays/frontend/widgets/filter_pills.scss +19 -12
- data/app/assets/stylesheets/iceholidays/frontend/widgets/search_bar.scss +4 -0
- data/app/controllers/iceholidays/frontend/posts_controller.rb +14 -0
- data/app/javascript/api-services/agents-api.service.ts +33 -0
- data/app/javascript/api-services/locations-api.service.ts +23 -1
- data/app/javascript/api-services/series-api.service.ts +48 -28
- data/app/javascript/interfaces/agent.interface.ts +11 -0
- data/app/javascript/interfaces/country.interface.ts +4 -3
- data/app/javascript/interfaces/itinerary.interface.ts +101 -8
- data/app/javascript/react/App.tsx +1 -1
- data/app/javascript/react/components/Destinations.tsx +30 -20
- data/app/javascript/react/components/PriceDetails.tsx +146 -0
- data/app/javascript/react/components/shared/ContactAgentsForm.tsx +44 -0
- data/app/javascript/react/components/shared/Headline.tsx +2 -1
- data/app/javascript/react/components/shared/LocationDropdown.tsx +34 -0
- data/app/javascript/react/components/shared/{Postcard.tsx → LocationPostcards.tsx} +22 -1
- data/app/javascript/react/layouts/MainFooter.tsx +64 -39
- data/app/javascript/react/layouts/MainHeader.tsx +68 -30
- data/app/javascript/react/pages/AboutUsPage.tsx +8 -8
- data/app/javascript/react/pages/BlogPage.tsx +6 -4
- data/app/javascript/react/pages/ContactAgentsPage.tsx +174 -5
- data/app/javascript/react/pages/ContactUsPage.tsx +5 -5
- data/app/javascript/react/pages/CountriesPage.tsx +3 -8
- data/app/javascript/react/pages/Homepage.tsx +23 -13
- data/app/javascript/react/pages/ListingPage.tsx +197 -145
- data/app/javascript/react/pages/ShowPage.tsx +275 -265
- data/app/javascript/react/widgets/FilterPills.tsx +83 -49
- data/app/javascript/react/widgets/SearchBarWidget.tsx +24 -8
- data/app/views/iceholidays/frontend/posts/index.html.erb +9 -0
- data/app/views/iceholidays/frontend/posts/show.html.erb +2 -0
- data/config/routes.rb +2 -1
- data/lib/iceholidays/frontend/version.rb +1 -1
- data/public/iceholidays-assets/application.css +1209 -437
- data/public/iceholidays-assets/application.js +91 -104
- data/public/iceholidays-assets/application.js.map +4 -4
- data/public/iceholidays-assets/images/TSTRibbon.png +0 -0
- data/public/iceholidays-assets/images/about-us_logo_mobile.png +0 -0
- data/public/iceholidays-assets/images/destinations_logo.png +0 -0
- data/public/iceholidays-assets/images/footer-bg_mobile.png +0 -0
- data/public/iceholidays-assets/images/logo_mobile.png +0 -0
- metadata +19 -27
- data/public/iceholidays-assets/images/8D7N.png +0 -0
- data/public/iceholidays-assets/images/Frame71.png +0 -0
- data/public/iceholidays-assets/images/africa.png +0 -0
- data/public/iceholidays-assets/images/banner1.png +0 -0
- data/public/iceholidays-assets/images/banner2.png +0 -0
- data/public/iceholidays-assets/images/china.png +0 -0
- data/public/iceholidays-assets/images/china2.png +0 -0
- data/public/iceholidays-assets/images/chongqing.png +0 -0
- data/public/iceholidays-assets/images/guangzhou.png +0 -0
- data/public/iceholidays-assets/images/guilin.png +0 -0
- data/public/iceholidays-assets/images/harbin.png +0 -0
- data/public/iceholidays-assets/images/hongkong.png +0 -0
- data/public/iceholidays-assets/images/inner_mongolia.png +0 -0
- data/public/iceholidays-assets/images/jiangxi.png +0 -0
- data/public/iceholidays-assets/images/kenya.png +0 -0
- data/public/iceholidays-assets/images/kenya2.png +0 -0
- data/public/iceholidays-assets/images/kunming.png +0 -0
- data/public/iceholidays-assets/images/slikroad.png +0 -0
- data/public/iceholidays-assets/images/southafrica.png +0 -0
- data/public/iceholidays-assets/images/tanzania.png +0 -0
- data/public/iceholidays-assets/images/tour1.png +0 -0
- data/public/iceholidays-assets/images/uganda.png +0 -0
- /data/public/iceholidays-assets/images/{Group_71.png → about-us_logo.png} +0 -0
- /data/public/iceholidays-assets/images/{logo_container.png → logo.png} +0 -0
|
@@ -11,25 +11,21 @@ import SeriesApi from "../../api-services/series-api.service";
|
|
|
11
11
|
import { Itinerary } from "../../interfaces/itinerary.interface";
|
|
12
12
|
|
|
13
13
|
import createDOMPurify from 'dompurify'
|
|
14
|
+
import LocationDropdown from "../components/shared/LocationDropdown";
|
|
14
15
|
|
|
15
16
|
const DOMPurify = createDOMPurify(window)
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
const bannerPath = '/iceholidays-assets/images/china_listings_cover.png';
|
|
19
|
-
const breadcrumbs = [
|
|
20
|
-
{ title: 'Home' },
|
|
21
|
-
{ title: 'China' },
|
|
22
|
-
{ title: 'Chongqing' }
|
|
23
|
-
]
|
|
24
20
|
|
|
25
21
|
const legends = [
|
|
26
22
|
{ id: "guaranteed", label: "Guaranteed", color: "#DCB062" },
|
|
27
|
-
{ id: "
|
|
23
|
+
{ id: "almost-guaranteed", label: "Selling Fast", color: "#23D1C0" }
|
|
28
24
|
]
|
|
29
25
|
|
|
30
26
|
const getColorByType = (type:string) => {
|
|
31
27
|
var legend = legends.find(l => l.id == type);
|
|
32
|
-
return legend ? legend.color : "#
|
|
28
|
+
return legend ? legend.color : "#999999";
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
function withSearchParams(Component) {
|
|
@@ -43,11 +39,15 @@ class ListingPage extends React.Component <{searchParams}> {
|
|
|
43
39
|
state = {
|
|
44
40
|
countries: [],
|
|
45
41
|
selectedCountry: {cities: []},
|
|
46
|
-
keyword: "",
|
|
42
|
+
searchParamsObj: {keyword: "", year: "", month: "", location_id: null},
|
|
47
43
|
itineraries: [],
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
location: {name: "", cover: ""},
|
|
45
|
+
breadcrumbs: [{ title: <a href="/app">Home</a> }],
|
|
46
|
+
descriptionModalOpen: false,
|
|
47
|
+
itineraryModalOpen: false,
|
|
48
|
+
dateModalOpen: false,
|
|
50
49
|
descriptionData: "",
|
|
50
|
+
fileUrlData: "",
|
|
51
51
|
departureDatesData: []
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -64,16 +64,55 @@ class ListingPage extends React.Component <{searchParams}> {
|
|
|
64
64
|
notification.error({ message: 'An error occured while loading countries.'});
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
const keyword = searchParams.get('keyword');
|
|
69
|
-
this.setState({keyword: keyword})
|
|
67
|
+
this.setSearchParamsObj();
|
|
70
68
|
|
|
71
|
-
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private setSearchParamsObj(){
|
|
72
|
+
const [searchParams] = this.props.searchParams;
|
|
73
|
+
const {searchParamsObj} = this.state;
|
|
74
|
+
searchParams.keys().forEach(key => {
|
|
75
|
+
searchParamsObj[key] = searchParams.get(key);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
this.setState({searchParamsObj});
|
|
79
|
+
|
|
80
|
+
const locationId = searchParamsObj.location_id;
|
|
81
|
+
if(locationId) this.getLocation(locationId);
|
|
82
|
+
|
|
83
|
+
this.getItineraries(searchParamsObj);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
searchParamsToText() {
|
|
88
|
+
var {keyword, year, month} = this.state.searchParamsObj;
|
|
89
|
+
return <span>{ this.state.location?.name || keyword}{`${month && `, ${month}`} ${year}`} </span>
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
getLocation(locationId){
|
|
93
|
+
//resets the breadcrumbs
|
|
94
|
+
this.setState({breadcrumbs: [{ title: <a href="/app">Home</a> }]});
|
|
95
|
+
|
|
96
|
+
this.locationsApi.getLocation(locationId)
|
|
97
|
+
.then(locationData => {
|
|
98
|
+
var locationCrumbs = this.state.breadcrumbs;
|
|
99
|
+
if(locationData.ancestry?.length && locationData.ancestry?.length > 0){
|
|
100
|
+
locationData.ancestry.forEach(a => {
|
|
101
|
+
locationCrumbs.push({title: <span key={a.id}> {a.name} </span>})
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
locationCrumbs.push({title: <span>{locationData.name}</span>});
|
|
105
|
+
this.setState({location: locationData, breadcrumbs: locationCrumbs})
|
|
106
|
+
})
|
|
107
|
+
.catch(error => {
|
|
108
|
+
notification.error({ message: 'An error occured while loading location.'});
|
|
109
|
+
});
|
|
72
110
|
}
|
|
73
111
|
|
|
74
112
|
getItineraries(searchParams){
|
|
75
113
|
this.seriesApi.getItineraries(searchParams)
|
|
76
|
-
|
|
114
|
+
.then(itinerariesData => {
|
|
115
|
+
this.setBreadcrumbs();
|
|
77
116
|
this.setState({itineraries: itinerariesData})
|
|
78
117
|
})
|
|
79
118
|
.catch(error => {
|
|
@@ -81,163 +120,176 @@ class ListingPage extends React.Component <{searchParams}> {
|
|
|
81
120
|
});
|
|
82
121
|
}
|
|
83
122
|
|
|
84
|
-
|
|
85
|
-
this.
|
|
86
|
-
|
|
123
|
+
setBreadcrumbs(){
|
|
124
|
+
var breadcrumbs = this.state.breadcrumbs;
|
|
125
|
+
if(breadcrumbs.length > 1){
|
|
126
|
+
const {keyword, ...noKeyword} = this.state.searchParamsObj;
|
|
127
|
+
const allHasValues = Object.entries(noKeyword).every(o => o[1] != "");
|
|
128
|
+
if(allHasValues){
|
|
129
|
+
const searchResultsCrumb = {title: <span>Search results</span>};
|
|
130
|
+
if(breadcrumbs.length > 2){
|
|
131
|
+
breadcrumbs[breadcrumbs.length-2] = searchResultsCrumb;
|
|
132
|
+
}else{
|
|
133
|
+
breadcrumbs.splice(1, 0, searchResultsCrumb);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
87
136
|
|
|
88
|
-
|
|
89
|
-
|
|
137
|
+
breadcrumbs[breadcrumbs.length-1] = {title: this.searchParamsToText()};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
this.setState({breadcrumbs});
|
|
90
141
|
}
|
|
91
142
|
|
|
92
|
-
|
|
93
|
-
this.setState({
|
|
143
|
+
showModal(modalName:string, propName: string, value: any){
|
|
144
|
+
this.setState({[modalName]: true, [propName]: value});
|
|
94
145
|
}
|
|
95
146
|
|
|
96
|
-
|
|
97
|
-
this.setState({
|
|
147
|
+
closeModal(modalName:string) {
|
|
148
|
+
this.setState({[modalName]:false});
|
|
98
149
|
}
|
|
99
150
|
|
|
100
|
-
selectCountry(country){
|
|
101
|
-
const selectedCountry = this.state.countries.find((c:Country) => c.id == country);
|
|
151
|
+
selectCountry = (country) => {
|
|
152
|
+
const selectedCountry:any = this.state.countries.find((c:Country) => c.id == country);
|
|
102
153
|
if(selectedCountry){
|
|
103
|
-
this.
|
|
154
|
+
const searchParamsObj = this.state.searchParamsObj;
|
|
155
|
+
searchParamsObj.location_id = selectedCountry.id;
|
|
156
|
+
this.getLocation(selectedCountry.id);
|
|
157
|
+
|
|
158
|
+
this.setState({selectedCountry, searchParamsObj});
|
|
159
|
+
this.getItineraries(searchParamsObj);
|
|
104
160
|
}
|
|
105
161
|
}
|
|
106
162
|
|
|
107
163
|
|
|
108
164
|
render(){
|
|
109
|
-
const {countries, selectedCountry,
|
|
165
|
+
const {countries, selectedCountry, searchParamsObj, itineraries, location, breadcrumbs, descriptionData, fileUrlData, departureDatesData } = this.state;
|
|
110
166
|
|
|
111
167
|
return <div id="listing-page">
|
|
112
168
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
optionRender={(option) => (
|
|
126
|
-
<div className="country-filter_option"> {option.label} </div>
|
|
127
|
-
)}
|
|
128
|
-
onChange={(country)=>this.selectCountry(country)}
|
|
129
|
-
/>
|
|
130
|
-
</Flex>
|
|
131
|
-
</div>
|
|
132
|
-
</Headline>
|
|
133
|
-
|
|
134
|
-
<div id="listing-page_body">
|
|
135
|
-
<Space size={12} direction="vertical">
|
|
136
|
-
<FilterPills items={selectedCountry.cities} label="name" initialValue={{keyword}} selectFilter={(selected) => this.getItineraries(selected)}></FilterPills>
|
|
137
|
-
</Space>
|
|
138
|
-
|
|
139
|
-
<div id="legends">
|
|
140
|
-
<Space size={17}>
|
|
141
|
-
{
|
|
142
|
-
legends.map(legend => <Badge key={legend.id} color={legend.color} text={legend.label} />)
|
|
143
|
-
}
|
|
169
|
+
<Headline bannerImage={location?.cover || bannerPath} breadcrumbs={breadcrumbs}>
|
|
170
|
+
<div id="listing-page_header">
|
|
171
|
+
<Flex vertical gap={10}>
|
|
172
|
+
<h1>{this.searchParamsToText()}</h1>
|
|
173
|
+
<LocationDropdown locations={countries} selectLocation={this.selectCountry}/>
|
|
174
|
+
</Flex>
|
|
175
|
+
</div>
|
|
176
|
+
</Headline>
|
|
177
|
+
|
|
178
|
+
<div id="listing-page_body">
|
|
179
|
+
<Space size={12} direction="vertical">
|
|
180
|
+
<FilterPills items={selectedCountry.cities} bindLabel="name" bindValue="location_id" initialValue={searchParamsObj} selectFilter={(selected) => this.getItineraries(selected)}></FilterPills>
|
|
144
181
|
</Space>
|
|
145
|
-
</div>
|
|
146
182
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
date: ddate
|
|
183
|
+
{
|
|
184
|
+
itineraries.length > 0 ? (
|
|
185
|
+
<>
|
|
186
|
+
<div id="legends">
|
|
187
|
+
<Space size={17}>
|
|
188
|
+
{
|
|
189
|
+
legends.map(legend => <Badge key={legend.id} color={legend.color} text={legend.label} />)
|
|
155
190
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
191
|
+
</Space>
|
|
192
|
+
</div>
|
|
193
|
+
<div id="tours">
|
|
194
|
+
<Flex vertical gap={30}>
|
|
195
|
+
{
|
|
196
|
+
itineraries.map((itinerary:Itinerary) => {
|
|
197
|
+
const departureDates = itinerary.departureDate ? itinerary.departureDate.map(ddate => {
|
|
198
|
+
var type = (itinerary.guranteedDepartureDates && itinerary.guranteedDepartureDates.includes(ddate)) ? "guaranteed" :
|
|
199
|
+
(itinerary.almostGuaranteedDepartureDates && itinerary.almostGuaranteedDepartureDates.includes(ddate)) ? "almost-guaranteed" : "";
|
|
200
|
+
|
|
201
|
+
return { type, date: ddate }
|
|
202
|
+
}) : [];
|
|
203
|
+
|
|
204
|
+
return (
|
|
205
|
+
<Row key={itinerary.id} className="tour">
|
|
206
|
+
<Col flex="1 0 25%" className="column">
|
|
207
|
+
<div className="tour_image"> <img src={itinerary.images[0]}/> </div>
|
|
208
|
+
</Col>
|
|
209
|
+
<Col flex="1 0 55%" className="column">
|
|
210
|
+
<div className="tour_details">
|
|
211
|
+
<Space size={20} direction="vertical" style={{ display: 'flex' }}>
|
|
212
|
+
<Space size={10} direction="vertical">
|
|
213
|
+
<div className="tour_details_title"> {itinerary.caption} </div>
|
|
214
|
+
<div className="tour_details_info">
|
|
215
|
+
<span onClick={()=>this.showModal("descriptionModalOpen", "descriptionData", itinerary.description)}><Icon path={mdiInformationOutline} size={1}/></span>
|
|
216
|
+
</div>
|
|
217
|
+
<div>
|
|
218
|
+
<span className="tour_details_country"> <Icon path={mdiMapMarkerOutline} size="18px" /> {itinerary.country} </span>
|
|
219
|
+
<span className="tour_details_code" onClick={()=>this.showModal("itineraryModalOpen", "fileUrlData", itinerary.fileUrl)}> <Icon path={mdiFileDownload} size="18px" /> {itinerary.code} </span>
|
|
220
|
+
</div>
|
|
221
|
+
</Space>
|
|
222
|
+
<div className="tour_details_dates">
|
|
223
|
+
<Space size={6} direction="vertical" style={{ display: 'flex' }}>
|
|
224
|
+
<label>Departure Date(s)</label>
|
|
225
|
+
<div className="date-selector">
|
|
226
|
+
{
|
|
227
|
+
departureDates && departureDates.map((ddate, index) => <span key={index} style={{borderColor: getColorByType(ddate.type)}}> {ddate.date} </span>)
|
|
228
|
+
}
|
|
229
|
+
{
|
|
230
|
+
departureDates.length >= 9 && <div className="show-all-dates" onClick={()=>this.showModal("dateModalOpen", "departureDatesData", departureDates)}> <Icon path={mdiDotsHorizontalCircleOutline} size="15px" /> Show All </div>
|
|
231
|
+
}
|
|
232
|
+
</div>
|
|
233
|
+
</Space>
|
|
234
|
+
</div>
|
|
235
|
+
</Space>
|
|
171
236
|
</div>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
237
|
+
</Col>
|
|
238
|
+
<Col flex="1 0 20%" className="column">
|
|
239
|
+
<div className="tour_pricing">
|
|
240
|
+
<Space size={20} direction="vertical" align="center">
|
|
241
|
+
<Flex className="tour_pricing_details">
|
|
242
|
+
<span>From</span>
|
|
243
|
+
<span className="price">{itinerary.priceCurrency} {itinerary.price}</span>
|
|
244
|
+
<span>All In</span>
|
|
245
|
+
</Flex>
|
|
246
|
+
<Link className="select-tour" to={`/app/itinerary/${itinerary.id}`}>Select</Link>
|
|
247
|
+
</Space>
|
|
175
248
|
</div>
|
|
176
|
-
</
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</div>
|
|
188
|
-
</Space>
|
|
189
|
-
</div>
|
|
190
|
-
</Space>
|
|
191
|
-
</div>
|
|
192
|
-
</Col>
|
|
193
|
-
<Col flex="210px">
|
|
194
|
-
<div className="tour_pricing">
|
|
195
|
-
<Space size={20} direction="vertical" align="center">
|
|
196
|
-
<Flex vertical>
|
|
197
|
-
<span>From</span>
|
|
198
|
-
<span className="price">{itinerary.priceCurrency} {itinerary.price}</span>
|
|
199
|
-
<span>All In</span>
|
|
200
|
-
</Flex>
|
|
201
|
-
<Link className="select-tour" to="/app/show">Select</Link>
|
|
202
|
-
</Space>
|
|
203
|
-
</div>
|
|
204
|
-
</Col>
|
|
205
|
-
</Row>
|
|
206
|
-
)
|
|
207
|
-
})
|
|
208
|
-
}
|
|
209
|
-
</Flex>
|
|
249
|
+
</Col>
|
|
250
|
+
</Row>
|
|
251
|
+
)
|
|
252
|
+
})
|
|
253
|
+
}
|
|
254
|
+
</Flex>
|
|
255
|
+
</div>
|
|
256
|
+
</>
|
|
257
|
+
) : <h1 id="no-tours-found">Not tour package is found.</h1>
|
|
258
|
+
}
|
|
259
|
+
|
|
210
260
|
</div>
|
|
211
|
-
</div>
|
|
212
261
|
|
|
262
|
+
<Modal title="Description" open={this.state.descriptionModalOpen} onCancel={()=>this.closeModal("descriptionModalOpen")} footer={null} width={1000} centered className="tour_details_description">
|
|
263
|
+
<div className="pre-wrap">{ <span dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(descriptionData) }} /> }</div>
|
|
264
|
+
</Modal>
|
|
213
265
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
266
|
+
<Modal title="Itinerary" open={this.state.itineraryModalOpen} onCancel={()=>this.closeModal("itineraryModalOpen")} footer={null} width={1000} centered className="tour_details_itinerary">
|
|
267
|
+
<div id="itinerary-file"><img src={fileUrlData}/></div>
|
|
268
|
+
</Modal>
|
|
217
269
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
270
|
+
<Modal title={
|
|
271
|
+
<Flex justify="space-between" align="center">
|
|
272
|
+
<div className="custom-modal-header-title"> Departure Date(s) </div>
|
|
273
|
+
<div className="custom-modal-header-legends">
|
|
274
|
+
<Space size={17}>
|
|
275
|
+
{
|
|
276
|
+
legends.map(legend => <Badge key={legend.id} color={legend.color} text={legend.label} />)
|
|
277
|
+
}
|
|
278
|
+
</Space>
|
|
279
|
+
</div>
|
|
280
|
+
</Flex>
|
|
281
|
+
} footer={
|
|
282
|
+
<Button>Confirm</Button>
|
|
283
|
+
}
|
|
284
|
+
open={this.state.dateModalOpen} onCancel={()=>this.closeModal("dateModalOpen")} width={940} centered className="tour_details_all_dates">
|
|
285
|
+
<div className="date-selector">
|
|
286
|
+
<Space size={8} wrap>
|
|
223
287
|
{
|
|
224
|
-
|
|
288
|
+
departureDatesData && departureDatesData.map((ddate:any) => <span style={{borderColor: getColorByType(ddate.type)}}> {ddate.date} </span>)
|
|
225
289
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</
|
|
229
|
-
} footer={
|
|
230
|
-
<Button>Confirm</Button>
|
|
231
|
-
}
|
|
232
|
-
open={this.state.setIsDateModalOpen} onCancel={()=>this.closeDatesModalatesModal()} width={940} centered className="tour_details_all_dates">
|
|
233
|
-
<div className="date-selector">
|
|
234
|
-
<Space size={8} wrap>
|
|
235
|
-
{
|
|
236
|
-
departureDatesData && departureDatesData.map((ddate:any) => <span style={{borderColor: getColorByType(ddate.type)}}> {ddate.date} </span>)
|
|
237
|
-
}
|
|
238
|
-
</Space>
|
|
239
|
-
</div>
|
|
240
|
-
</Modal>
|
|
290
|
+
</Space>
|
|
291
|
+
</div>
|
|
292
|
+
</Modal>
|
|
241
293
|
</div>
|
|
242
294
|
}
|
|
243
295
|
}
|