From fecb69a3b2e5135664931cd21d61442e291d2e3f Mon Sep 17 00:00:00 2001
From: happppi <102276917+hhbb0081@users.noreply.github.com>
Date: Tue, 6 Aug 2024 21:53:25 +0900
Subject: [PATCH] =?UTF-8?q?Fix:=20user=20profile=20edit=20=EC=97=90?=
=?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/user/profile/edit/page.tsx | 8 --------
src/features/user/profile/Profile.tsx | 4 +---
src/features/user/profile/components/AccountInfo.tsx | 9 ++++-----
src/features/user/profile/components/AccountSetting.tsx | 3 +--
4 files changed, 6 insertions(+), 18 deletions(-)
delete mode 100644 src/app/user/profile/edit/page.tsx
diff --git a/src/app/user/profile/edit/page.tsx b/src/app/user/profile/edit/page.tsx
deleted file mode 100644
index 994fc0f..0000000
--- a/src/app/user/profile/edit/page.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-"use client";
-import SetUpEditProfile from "@/features/user/profile/SetUpEditProfile";
-
-const UserEditProfile = () => {
- return ;
-};
-
-export default UserEditProfile;
diff --git a/src/features/user/profile/Profile.tsx b/src/features/user/profile/Profile.tsx
index 301fc90..08bbe0c 100644
--- a/src/features/user/profile/Profile.tsx
+++ b/src/features/user/profile/Profile.tsx
@@ -1,9 +1,7 @@
-// import { HistoryHeader, LogoHeader } from "@/components/organisms/Header";
import AccountInfo from "./components/AccountInfo";
import AccountSetting from "./components/AccountSetting";
-import React from "react";
-const Profile: React.FC = () => {
+const Profile = () => {
return (
<>
diff --git a/src/features/user/profile/components/AccountInfo.tsx b/src/features/user/profile/components/AccountInfo.tsx
index 2e8ada3..74a8e13 100644
--- a/src/features/user/profile/components/AccountInfo.tsx
+++ b/src/features/user/profile/components/AccountInfo.tsx
@@ -1,13 +1,12 @@
"use client";
-import "./AccountInfo.css";
-import { ACCOUNT_INFO } from "../constants/const";
import { NAME } from "@/constants/const";
-import { useRouter } from "next/navigation";
-import React from "react";
import { useGetUserInfoQuery } from "@/hook/user/useGetUserInfoQuery";
+import { useRouter } from "next/navigation";
+import { ACCOUNT_INFO } from "../constants/const";
+import "./AccountInfo.css";
-const AccountInfo: React.FC = () => {
+const AccountInfo = () => {
const router = useRouter();
const { data } = useGetUserInfoQuery();
const userInfo = data?.data;
diff --git a/src/features/user/profile/components/AccountSetting.tsx b/src/features/user/profile/components/AccountSetting.tsx
index f30a887..e158e15 100644
--- a/src/features/user/profile/components/AccountSetting.tsx
+++ b/src/features/user/profile/components/AccountSetting.tsx
@@ -1,8 +1,7 @@
import { ACCOUNT_SETTING } from "../constants/const";
import "./AccountSetting.css";
-import React from "react";
-const AccountSetting: React.FC = () => {
+const AccountSetting = () => {
return (