Skip to content

Commit

Permalink
Merge pull request #126 from Onion-City/dev
Browse files Browse the repository at this point in the history
Fix: user profile edit 에러 해결
  • Loading branch information
hhbb0081 authored Aug 6, 2024
2 parents e5d072d + c501059 commit fb4e6cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/app/user/profile/edit/page.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/features/user/profile/Profile.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<>
<AccountInfo />
Expand Down
9 changes: 4 additions & 5 deletions src/features/user/profile/components/AccountInfo.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/features/user/profile/components/AccountSetting.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ACCOUNT_SETTING } from "../constants/const";
import "./AccountSetting.css";
import React from "react";

const AccountSetting: React.FC = () => {
const AccountSetting = () => {
return (
<div className="account_setting">
<div className="account_setting__logout">{ACCOUNT_SETTING.logout}</div>
Expand Down

0 comments on commit fb4e6cf

Please sign in to comment.