diff --git a/package-lock.json b/package-lock.json index 427ea41..a785449 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "autoprefixer": "10.4.16", "eslint": "8.49.0", "eslint-config-next": "13.5.2", + "event-source-polyfill": "^1.0.31", "jsonwebtoken": "^9.0.2", "konva": "^9.2.3", "next": "^13.5.4", @@ -32,6 +33,7 @@ "ws": "^8.14.2" }, "devDependencies": { + "@types/event-source-polyfill": "^1.0.5", "@types/jsonwebtoken": "^9.0.3", "@types/sockjs-client": "^1.5.4", "@types/ws": "^8.5.10" @@ -721,6 +723,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/event-source-polyfill": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/event-source-polyfill/-/event-source-polyfill-1.0.5.tgz", + "integrity": "sha512-iaiDuDI2aIFft7XkcwMzDWLqo7LVDixd2sR6B4wxJut9xcp/Ev9bO4EFg4rm6S9QxATLBj5OPxdeocgmhjwKaw==", + "dev": true + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -2090,6 +2098,11 @@ "node": ">=0.10.0" } }, + "node_modules/event-source-polyfill": { + "version": "1.0.31", + "resolved": "https://registry.npmjs.org/event-source-polyfill/-/event-source-polyfill-1.0.31.tgz", + "integrity": "sha512-4IJSItgS/41IxN5UVAVuAyczwZF7ZIEsM1XAoUzIHA6A+xzusEZUutdXz2Nr+MQPLxfTiCvqE79/C8HT8fKFvA==" + }, "node_modules/eventsource": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz", diff --git a/package.json b/package.json index 962405b..9b6583d 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "autoprefixer": "10.4.16", "eslint": "8.49.0", "eslint-config-next": "13.5.2", + "event-source-polyfill": "^1.0.31", "jsonwebtoken": "^9.0.2", "konva": "^9.2.3", "next": "^13.5.4", @@ -33,6 +34,7 @@ "ws": "^8.14.2" }, "devDependencies": { + "@types/event-source-polyfill": "^1.0.5", "@types/jsonwebtoken": "^9.0.3", "@types/sockjs-client": "^1.5.4", "@types/ws": "^8.5.10" diff --git a/src/app/(main)/@modal/(.)addAlbum/page.tsx b/src/app/(main)/@addAlbumModal/(.)addAlbum/page.tsx similarity index 100% rename from src/app/(main)/@modal/(.)addAlbum/page.tsx rename to src/app/(main)/@addAlbumModal/(.)addAlbum/page.tsx diff --git a/src/app/(main)/@modal/default.tsx b/src/app/(main)/@addAlbumModal/default.tsx similarity index 100% rename from src/app/(main)/@modal/default.tsx rename to src/app/(main)/@addAlbumModal/default.tsx diff --git a/src/app/(main)/@addMateModal/(.)addMate/page.tsx b/src/app/(main)/@addMateModal/(.)addMate/page.tsx new file mode 100644 index 0000000..2eff91e --- /dev/null +++ b/src/app/(main)/@addMateModal/(.)addMate/page.tsx @@ -0,0 +1,12 @@ +import Modal from "@/components/Modal"; +import AddMateSection from "@/templates/AddMateSection"; + +const AddMateModalPage = () => { + return ( + + + + ); +}; + +export default AddMateModalPage; diff --git a/src/app/(main)/@addMateModal/default.tsx b/src/app/(main)/@addMateModal/default.tsx new file mode 100644 index 0000000..395785b --- /dev/null +++ b/src/app/(main)/@addMateModal/default.tsx @@ -0,0 +1,5 @@ +const Default = () => { + return null; +}; + +export default Default; diff --git a/src/app/(main)/addMate/page.tsx b/src/app/(main)/addMate/page.tsx new file mode 100644 index 0000000..86a8565 --- /dev/null +++ b/src/app/(main)/addMate/page.tsx @@ -0,0 +1,11 @@ +import AddMateSection from "@/templates/AddMateSection"; + +const AddMatePage = () => { + return ( +
+ +
+ ); +}; + +export default AddMatePage; diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index ba67da2..b103f18 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -12,10 +12,15 @@ export const metadata: Metadata = { interface RootLayoutProps { children: React.ReactNode; - modal: React.ReactNode; + addAlbumModal: React.ReactNode; + addMateModal: React.ReactNode; } -const RootLayout = async ({ children, modal }: RootLayoutProps) => { +const RootLayout = async ({ + children, + addAlbumModal, + addMateModal, +}: RootLayoutProps) => { return ( @@ -23,7 +28,8 @@ const RootLayout = async ({ children, modal }: RootLayoutProps) => {
{children} - {modal} + {addAlbumModal} + {addMateModal}