(null);
+
+ const handleImageClick = (imageUrl: string) => {
+ setSelectedImage(imageUrl);
+ };
+
+ const closeImageModal = () => {
+ setSelectedImage(null);
+ };
+
return (
-
- {designData.map((design) => (
-
- ))}
-
+ <>
+
+ {designData.map((design) => (
+ - handleImageClick(design.cakeImageUrl)}
+ >
+
+
+ ))}
+
+
+ {selectedImage && (
+
+
+
+ )}
+ >
);
};
diff --git a/src/routes/index.ts b/src/routes/index.ts
index 09e2cc2d..79897dc2 100644
--- a/src/routes/index.ts
+++ b/src/routes/index.ts
@@ -2,7 +2,6 @@ import authRoutes from './authRoutes';
import designListRoutes from './designListRoutes';
import homeRoutes from './homeRoutes';
import myPageRoutes from './myPageRoutes';
-import routePath from './routePath';
import storeRoutes from './storeRoutes';
import viewRoutes from './viewRoutes';