App directory #4
This commit is contained in:
parent
69706053c6
commit
4d743c5e67
86 changed files with 223 additions and 107 deletions
16
apps/metamigo-frontend/app/admin/_components/Admin.tsx
Normal file
16
apps/metamigo-frontend/app/admin/_components/Admin.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"use client";
|
||||
|
||||
import { FC } from "react";
|
||||
import { ApolloProvider } from "@apollo/client";
|
||||
import { apolloClient } from "app/_lib/apollo-client";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const MetamigoAdmin = dynamic(() => import("app/_components/MetamigoAdmin"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export const Admin:FC = () => (
|
||||
<ApolloProvider client={apolloClient}>
|
||||
<MetamigoAdmin />
|
||||
</ApolloProvider>
|
||||
);
|
||||
5
apps/metamigo-frontend/app/admin/page.tsx
Normal file
5
apps/metamigo-frontend/app/admin/page.tsx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { Admin } from "./_components/Admin";
|
||||
|
||||
export default function Home() {
|
||||
return <Admin />
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue