diff --git a/src/app/@modal/(.)modal/profileEdit/page.tsx b/src/app/@modal/(.)modal/profileEdit/page.tsx
new file mode 100644
index 00000000..e5480277
--- /dev/null
+++ b/src/app/@modal/(.)modal/profileEdit/page.tsx
@@ -0,0 +1,12 @@
+import EditModal from '@/components/Profile/modal/EditModal';
+import { Modal } from '@/shared/ui/Modal';
+
+const ProfileEdit = () => {
+ return (
+
+
+
+ );
+};
+
+export default ProfileEdit;
diff --git a/src/app/modal/profileEdit/page.tsx b/src/app/modal/profileEdit/page.tsx
new file mode 100644
index 00000000..b7789db8
--- /dev/null
+++ b/src/app/modal/profileEdit/page.tsx
@@ -0,0 +1,12 @@
+import EditModal from '@/components/Profile/modal/EditModal';
+import { Modal } from '@/shared/ui/Modal';
+
+const ProfileEdit = () => {
+ return (
+
+
+
+ );
+};
+
+export default ProfileEdit;
diff --git a/src/components/Profile/ProfileCard.tsx b/src/components/Profile/ProfileCard.tsx
index d008292c..1a957fd8 100644
--- a/src/components/Profile/ProfileCard.tsx
+++ b/src/components/Profile/ProfileCard.tsx
@@ -6,7 +6,7 @@ import { ImageComponent } from '@/shared/ui/Img';
import useFollowMutation from '@/components/Profile/hooks/useFollowMutation';
import useUnFollowMutation from '@/components/Profile/hooks/useUnFollowMutation';
import { PROFILE_DEFAULT_IMAGE } from '@/components/Profile/constants/profileDefaultImage';
-import { useSearchParams } from 'next/navigation';
+import { useRouter, useSearchParams } from 'next/navigation';
import { useSuspenseQuery } from '@tanstack/react-query';
import { profileOptions } from '@/app/profile/queryOptions';
@@ -16,6 +16,7 @@ interface ProfileCardProps {
}
export const ProfileCard = ({ loginedId, accessToken }: ProfileCardProps) => {
+ const router = useRouter();
const userId = useSearchParams().get('userId');
const currentProfileId = Number(userId) || Number(loginedId);
const isMyProfile = Number(userId) === Number(loginedId) || !userId;
@@ -92,7 +93,11 @@ export const ProfileCard = ({ loginedId, accessToken }: ProfileCardProps) => {
{isMyProfile ? (
<>
-