From 831aff19a4f011e7f4e881001d8c7934cfb67cfd Mon Sep 17 00:00:00 2001
From: Salomo309 <109785084+Salomo309@users.noreply.github.com>
Date: Fri, 17 Nov 2023 02:34:21 +0700
Subject: [PATCH] refactor: add delete dialog

---
 src/routes/routes.ts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/routes/routes.ts b/src/routes/routes.ts
index 7926148..46a6e98 100644
--- a/src/routes/routes.ts
+++ b/src/routes/routes.ts
@@ -9,6 +9,8 @@ import AddSongPage from "@/pages/AddSongPage.tsx";
 import EditSongPage from "@/pages/EditSongPage.tsx";
 import {NotMatchLayout} from "@/layouts/NotMatchLayout.tsx";
 import NotMatch from "@/pages/NotMatch.tsx";
+import DeleteAlbumDialog from "@/components/delete-dialog-album";
+import DeleteSongDialog from "@/components/delete-dialog-song";
 
 export const routes = [
   {
@@ -48,6 +50,12 @@ export const routes = [
             title: 'Edit Album page',
             component: EditAlbumPage,
             path: "/:albumId/edit-album",
+          },
+          {
+            name: 'delete-album',
+            title: 'Delete Album page',
+            component: DeleteAlbumDialog,
+            path: "/:albumId/delete-album/",
           }
         ]
       },
@@ -73,6 +81,12 @@ export const routes = [
             title: 'Edit Song page',
             component: EditSongPage,
             path: "/:albumId/edit-song/:songId",
+          },
+          {
+            name: 'delete-song',
+            title: 'Delete Song page',
+            component: DeleteSongDialog,
+            path: "/:albumId/delete-song/:songId",
           }
         ]
       }
-- 
GitLab