Skip to content

Commit e1bca1a

Browse files
committed
Fix breaking change where the slots were not loading due to v2 releease.
1 parent 7ef1724 commit e1bca1a

File tree

3 files changed

+9201
-14
lines changed

3 files changed

+9201
-14
lines changed

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"version": "0.1.9",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.12.0",
7-
"@testing-library/react": "^11.2.6",
8-
"@testing-library/user-event": "^12.8.3",
9-
"axios": "^0.21.1",
10-
"react": "^18.0.0-beta-24dd07bd2-20211208",
11-
"react-data-table-component": "^7.4.5",
12-
"react-dom": "^18.0.0-beta-24dd07bd2-20211208",
13-
"react-github-btn": "^1.2.0",
6+
"@testing-library/jest-dom": "^5.16.4",
7+
"@testing-library/react": "^13.2.0",
8+
"@testing-library/user-event": "^14.1.1",
9+
"axios": "^0.27.2",
10+
"react": "^18.1.0",
11+
"react-data-table-component": "^7.5.1",
12+
"react-dom": "^18.1.0",
13+
"react-github-btn": "^1.2.2",
1414
"react-json-view": "^1.21.3",
15-
"react-scripts": "4.0.3",
15+
"react-scripts": "5.0.1",
1616
"react-simple-card": "^2.0.2",
17-
"react-youtube": "^7.13.1",
18-
"styled-components": "^5.2.3",
19-
"user-agents": "^1.0.864"
17+
"react-youtube": "^9.0.1",
18+
"styled-components": "^5.3.5",
19+
"user-agents": "^1.0.1009"
2020
},
2121
"scripts": {
2222
"start": "react-scripts start",
@@ -43,6 +43,6 @@
4343
]
4444
},
4545
"devDependencies": {
46-
"web-vitals": "^1.1.1"
46+
"web-vitals": "^2.1.4"
4747
}
4848
}

src/App.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ function App() {
7474
age: entry.min_age_limit,
7575
});
7676
for (const [i, e] of entry.slots.entries()) {
77+
console.log(i, e);
7778
const keyname = `slot${i + 1}`;
78-
data[index][keyname] = e;
79+
data[index][keyname] = e.seats;
7980
}
8081
}
8182

0 commit comments

Comments
 (0)