-
Notifications
You must be signed in to change notification settings - Fork 0
/
redux_store_preview.js
55 lines (55 loc) · 1.32 KB
/
redux_store_preview.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const store = {
biz: {
1: {
address1: "625 Hammy Driver",
address2: "345",
city: "The Bay",
id: 2,
image: "https://logos-download.com/wp-content/uploads/2016/04/Burger_King_logo_emblem-2.png",
name: "Burger King",
state: "New York",
userId: 2,
AvgRating: 4.7,
// list of questions (number of questions)
// list food of food items (ids)
// list of food images
},
},
questions: {
2: {
body: "Does this place have dine in?",
businessId: 2,
id: 2,
userId: 1,
answers: {
3: { id: 3, body: "Yes!", userId: 3, username: "Demo" },
},
},
},
reviews: {
1: {
body: "this place is great",
businessId: 1,
id: 4,
image: "pic.jpg",
stars: 4,
userId: 3,
},
},
food: {
1: {
id: 1,
businessId: 2,
price: 3.6,
name: "Tacos",
image: "pic2.jpg",
},
2: {
id: 2,
businessId: 2,
price: 3.6,
name: "Hotdogs",
image: "pic3.jpg",
},
},
};