Skip to content

Commit 1fc2734

Browse files
committed
location changes for vercel
1 parent ca94efd commit 1fc2734

File tree

7 files changed

+28
-17
lines changed

7 files changed

+28
-17
lines changed

src/JSON/booking.json src/DATA/booking.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
const booking = [
22
{
33
"id" : 1,
44
"slot_id" : 1,
@@ -88,4 +88,6 @@
8888
"price" : 400,
8989
"seats" : [23, 24, 25]
9090
}
91-
]
91+
]
92+
93+
export default booking

src/JSON/categories.json src/DATA/categories.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
const categories = {
22
"front" : {
33
"min" : 1,
44
"max" : 20
@@ -13,4 +13,6 @@
1313
"min" : 71,
1414
"max" : 100
1515
}
16-
}
16+
}
17+
18+
export default categories

src/JSON/cinema.json src/DATA/cinema.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
const cinemas = [
22
{
33
"id" : 1,
44
"location" : "bengaluru",
@@ -94,4 +94,6 @@
9494
"location" : "alwar",
9595
"theatre" : 4
9696
}
97-
]
97+
]
98+
99+
export default cinemas

src/JSON/movie.json src/DATA/movie.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
const movies = [
22
{
33
"id": 1,
44
"title": "Gladiator",
@@ -71,7 +71,7 @@
7171
"id": 5,
7272
"title": "Dil Bechara",
7373
"language": "Hindi",
74-
"image": "https://lh3.googleusercontent.com/proxy/aGzQk1qLFFDcVPjuI_erDLEO9zk5he4MaK4ozsjTRfycagssp2Uo59nmIxFHHr-kHT-mZJp6ixbaav1LTNIElblVIqyOISd1x5o9Mu5KNXuY6piMkvP-cNWdSeB-",
74+
"image": "https://m.media-amazon.com/images/M/MV5BNmI0MTliMTAtMmJhNC00NTJmLTllMzQtMDI3NzA1ODMyZWI1XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_.jpg",
7575
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
7676
"director": "Mukesh Chhabra",
7777
"cast": ["Sushant", "Sanjana"],
@@ -170,3 +170,5 @@
170170
"rating": [2, 3, 4, 5, 5]
171171
}
172172
]
173+
174+
export default movies

src/JSON/slot.json src/DATA/slot.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[
1+
const slots = [
22
{
33
"id" : 1,
44
"movie_id" : 1,
@@ -1757,4 +1757,6 @@
17571757
"cinema_id" : 1,
17581758
"seats_booked" : [3, 5, 6, 8, 23, 24, 25, 27, 34, 35, 36, 56, 57, 58]
17591759
}
1760-
]
1760+
]
1761+
1762+
export default slots

src/components/Models/Models.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import movie from "../../JSON/movie.json";
2-
import categories from "../../JSON/categories.json";
3-
import bookings from "../../JSON/booking.json";
4-
import cinemas from "../../JSON/cinema.json";
5-
import slots from "../../JSON/slot.json";
1+
import movie from "../../DATA/movie";
2+
import categories from "../../DATA/categories";
3+
import bookings from "../../DATA/booking";
4+
import cinemas from "../../DATA/cinema";
5+
import slots from "../../DATA/slot";
66

77
export class Movies {
88
constructor() {

src/context/DataContextProvider.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Slots as SlotData,
55
} from "../components/Models/Models";
66
import { v4 as uuidv4 } from "uuid";
7-
import getLocation from "../components/Models/Locator";
7+
// import getLocation from "../components/Models/Locator";
88

99
export const DataContext = React.createContext();
1010

@@ -38,7 +38,8 @@ export default class DataContextProvider extends React.Component {
3838
};
3939

4040
setLocation = async () => {
41-
let location = await getLocation()
41+
// let location = await getLocation()
42+
let location = "Bengaluru"
4243
this.setState({ location });
4344
};
4445

0 commit comments

Comments
 (0)