chore: Upgrades Next.js to 13.4.6 (#9578)
* Upgrades Next.js to 13.4.6 * API handlers no longer receive a payload with req.method=DELETE * Use DELETE with query params in Calendar Switch component --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Efraín Rochín <[email protected]>
This commit is contained in:
9 files changed
+110
-296
No files matched your search
@@ -47,12 +47,11 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => {
|
||||
throw new Error("Something went wrong");
|
||||
}
|
||||
} else {
|
||||
const res = await fetch("/api/availability/calendar", {
|
||||
const res = await fetch("/api/availability/calendar?" + new URLSearchParams(body), {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"@wojtekmaj/react-daterange-picker": "^3.3.1",
|
||||
"class-variance-authority": "^0.4.0",
|
||||
"downshift": "^6.1.9",
|
||||
"next": "^13.2.1",
|
||||
"next": "^13.4.6",
|
||||
"react": "^18.2.0",
|
||||
"react-colorful": "^5.6.0",
|
||||
"react-feather": "^2.0.10",
|
||||
|
||||
Reference in new issue
Block a user