migrate to next 15 and react 19

This commit is contained in:
Milo Schwartz
2024-10-23 13:30:23 -04:00
parent 2322640dc0
commit ce19cc4ba4
20 changed files with 196 additions and 187 deletions

View File

@@ -5,15 +5,16 @@ import { AxiosResponse } from "axios";
import { ListResourcesResponse } from "@server/routers/resource";
type ResourcesPageProps = {
params: { orgId: string };
params: Promise<{ orgId: string }>;
};
export default async function Page({ params }: ResourcesPageProps) {
export default async function Page(props: ResourcesPageProps) {
const params = await props.params;
let resources: ListResourcesResponse["resources"] = [];
try {
const res = await internal.get<AxiosResponse<ListResourcesResponse>>(
`/org/${params.orgId}/resources`,
authCookieHeader(),
await authCookieHeader(),
);
resources = res.data.data.resources;
} catch (e) {