Skip to content

Commit 9bfd13e

Browse files
committed
sample updated
1 parent 942746b commit 9bfd13e

File tree

4 files changed

+464
-180
lines changed

4 files changed

+464
-180
lines changed

Hotel-booking-App/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@syncfusion/ej2-react-inputs": "*",
1818
"@syncfusion/ej2-react-dropdowns": "*",
1919
"@syncfusion/ej2-react-navigations": "*",
20-
"@syncfusion/ej2-react-notifications": "*",
2120
"@syncfusion/ej2-react-maps": "*",
2221
"@testing-library/jest-dom": "^5.16.5",
2322
"@testing-library/react": "^13.4.0",

Hotel-booking-App/src/DataCreation.js

+2-28
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ startDate2.setDate(endDate1.getDate() + 1);
99
const endDate2 = new Date(startDate2);
1010
endDate2.setDate(startDate2.getDate() + 2);
1111

12-
var hotelInfo = [
12+
var hotelData = [
1313
{
1414
HotelID: 102278,
1515
HotelName: 'Benor Cotel',
@@ -79,7 +79,6 @@ var hotelInfo = [
7979
Price: 150,
8080
CheckInOut: []
8181
},
82-
////////////////////////////////
8382
{
8483
HotelID: 117823,
8584
HotelName: 'Zabator Cotel',
@@ -149,7 +148,6 @@ var hotelInfo = [
149148
Price: 100,
150149
CheckInOut: []
151150
},
152-
////////////////////////////////
153151
{
154152
HotelID: 322211,
155153
HotelName: 'Ben Swikator',
@@ -219,8 +217,6 @@ var hotelInfo = [
219217
Price: 150,
220218
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
221219
},
222-
//////////////////////////////////////////
223-
224220
{
225221
HotelID: 112278,
226222
HotelName: 'Zentor Motel',
@@ -290,7 +286,6 @@ var hotelInfo = [
290286
Price: 150,
291287
CheckInOut: []
292288
},
293-
////////////////////////////////
294289
{
295290
HotelID: 127823,
296291
HotelName: 'Bakator Cotel',
@@ -360,7 +355,6 @@ var hotelInfo = [
360355
Price: 100,
361356
CheckInOut: []
362357
},
363-
////////////////////////////////
364358
{
365359
HotelID: 332211,
366360
HotelName: 'Zen Swikator',
@@ -430,8 +424,6 @@ var hotelInfo = [
430424
Price: 150,
431425
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
432426
},
433-
/////////////////////////
434-
435427
{
436428
HotelID: 342211,
437429
HotelName: 'Cen Zwikator',
@@ -501,8 +493,6 @@ var hotelInfo = [
501493
Price: 150,
502494
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
503495
},
504-
//////////////////
505-
506496
{
507497
HotelID: 132278,
508498
HotelName: 'Bekaor Cotel',
@@ -572,7 +562,6 @@ var hotelInfo = [
572562
Price: 150,
573563
CheckInOut: []
574564
},
575-
////////////////////////////////
576565
{
577566
HotelID: 137823,
578567
HotelName: 'Zanator Cotel',
@@ -642,7 +631,6 @@ var hotelInfo = [
642631
Price: 300,
643632
CheckInOut: []
644633
},
645-
////////////////////////////////
646634
{
647635
HotelID: 343211,
648636
HotelName: 'Bentoo Swikator',
@@ -712,8 +700,6 @@ var hotelInfo = [
712700
Price: 250,
713701
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
714702
},
715-
//////////////////////////////////////////
716-
717703
{
718704
HotelID: 142278,
719705
HotelName: 'ZZntor Cotel',
@@ -783,7 +769,6 @@ var hotelInfo = [
783769
Price: 150,
784770
CheckInOut: []
785771
},
786-
////////////////////////////////
787772
{
788773
HotelID: 129823,
789774
HotelName: 'Oakator Cotel',
@@ -853,7 +838,6 @@ var hotelInfo = [
853838
Price: 100,
854839
CheckInOut: []
855840
},
856-
////////////////////////////////
857841
{
858842
HotelID: 332221,
859843
HotelName: 'ZenZen Swikator',
@@ -923,8 +907,6 @@ var hotelInfo = [
923907
Price: 150,
924908
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
925909
},
926-
/////////////////////////
927-
928910
{
929911
HotelID: 342311,
930912
HotelName: 'CenCake Owikator',
@@ -994,9 +976,6 @@ var hotelInfo = [
994976
Price: 550,
995977
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
996978
},
997-
998-
///////////////////
999-
1000979
{
1001980
HotelID: 192278,
1002981
HotelName: 'Zekaorza Cotel',
@@ -1066,7 +1045,6 @@ var hotelInfo = [
10661045
Price: 250,
10671046
CheckInOut: []
10681047
},
1069-
////////////////////////////////
10701048
{
10711049
HotelID: 197823,
10721050
HotelName: 'Zabatorza Cotel',
@@ -1136,7 +1114,6 @@ var hotelInfo = [
11361114
Price: 300,
11371115
CheckInOut: []
11381116
},
1139-
////////////////////////////////
11401117
{
11411118
HotelID: 393211,
11421119
HotelName: 'Saentoo Swikator',
@@ -1206,8 +1183,6 @@ var hotelInfo = [
12061183
Price: 250,
12071184
CheckInOut: [{ CheckIn: startDate2, CheckOut: endDate2 }]
12081185
},
1209-
//////////////////////////////////////////
1210-
12111186
{
12121187
HotelID: 199278,
12131188
HotelName: 'Zoontor Cotel',
@@ -1277,7 +1252,6 @@ var hotelInfo = [
12771252
Price: 150,
12781253
CheckInOut: []
12791254
},
1280-
////////////////////////////////
12811255
{
12821256
HotelID: 199923,
12831257
HotelName: 'Sasktor Cotel',
@@ -1304,4 +1278,4 @@ var hotelInfo = [
13041278

13051279
];
13061280

1307-
exports.hotelData = hotelInfo;
1281+
exports.data = hotelData;

Hotel-booking-App/src/HotelBookApp.css

+33
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ body {
201201
flex-grow: 1;
202202
}
203203

204+
.e-flex-spacer {
205+
flex-grow: 1;
206+
}
207+
204208
.e-info-flex-width-applier {
205209
width: 50%;
206210
padding-right: 15px;
@@ -356,6 +360,35 @@ body {
356360
color: white;
357361
}
358362

363+
.e-print-info {
364+
display: none;
365+
position: fixed;
366+
z-index: 1000000001;
367+
height: 100%;
368+
top: 0;
369+
width: 100%;
370+
background-color: rgba(0, 0, 0, 0.3);
371+
}
372+
373+
.e-print-info-container {
374+
padding: 10px;
375+
}
376+
377+
.e-custom-print-button {
378+
text-align: left;
379+
}
380+
381+
.e-custom-print-icon::before {
382+
content: "\ebf9";
383+
color: #333;
384+
font-size: 16px;
385+
font-family: "e-icons";
386+
}
387+
388+
.e-print-info-separator {
389+
margin-top: 10px;
390+
}
391+
359392
@import '../node_modules/@syncfusion/ej2-base/styles/fabric.css';
360393
@import '../node_modules/@syncfusion/ej2-buttons/styles/fabric.css';
361394
@import '../node_modules/@syncfusion/ej2-calendars/styles/fabric.css';

0 commit comments

Comments
 (0)