Skip to content

Commit

Permalink
Merge pull request #28 from ZeroWastePlatform/feature/ZERO-28-myPageW…
Browse files Browse the repository at this point in the history
…ireframe

feat : mypage 구현
  • Loading branch information
dlantjdgkgk committed Apr 10, 2023
2 parents 8f8b6a0 + da25fc3 commit 9a06559
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 45 deletions.
8 changes: 5 additions & 3 deletions src/assets/images/coupon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const MemberDataRow = styled.div`
border-top: 1px solid #a7a7a8;
display: flex;
gap: 40px;
width: 250px;
img {
width: 30px;
height: 30px;
Expand Down
7 changes: 3 additions & 4 deletions src/components/MyPage/Common/ProfileAside/ProfileAside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ import { useEffect } from "react";
import customAPI from "../../../../lib/customAPI";

interface IProfileAsideProps {
setSelectCategoryNav: any;
setSelectCategoryNav: React.Dispatch<React.SetStateAction<string>>;
}

const ProfileAside = ({ setSelectCategoryNav }) => {
const ProfileAside = ({ setSelectCategoryNav }: IProfileAsideProps) => {
const navigate = useNavigate();
const userInfo = useRecoilValue(userInfoAtom);

const accessToken = localStorage.getItem("accessToken");

const memberInfoAPI = async (): Promise<void> => {
Expand All @@ -51,7 +50,7 @@ const ProfileAside = ({ setSelectCategoryNav }) => {
<ProfileAsideLayout>
<img src={ProfileImg} />
<ProfileBox>
<PropfileNickNameSpan>{userInfo.nickname}</PropfileNickNameSpan>
<PropfileNickNameSpan>{userInfo.nickname}그리너스 조아</PropfileNickNameSpan>
<PropfileLevelSpan>LV. {userInfo.level} 프로 그리너스</PropfileLevelSpan>
<MemberInfoButton
onClick={() => {
Expand Down

This file was deleted.

Empty file.
Empty file.
1 change: 0 additions & 1 deletion src/components/MyPage/MemberInfo/MemberInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
PostCodeInput,
RequiredItemSpan,
} from "./MemberInfo.style";
import KakaoImg from "../../../assets/images/kakao.svg";
import { useRef, useState } from "react";
import ZipCodeModal from "../../Common/ZipCodeModal/ZipCodeModal";
import customAPI from "../../../lib/customAPI";
Expand Down
29 changes: 1 addition & 28 deletions src/components/MyPage/MyOrderList/MyOrderListContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
import MyOrderList from "./MyOrderList";

const selectList = [
{
id: 1,
period: "기간",
},
{
id: 2,
period: "1개월 전 ",
},
{
id: 3,
period: "3개월 전 ",
},
{
id: 4,
period: "6개월 전 ",
},
{
id: 5,
period: "1년 전 ",
},
{
id: 6,
period: "3년 전 ",
},
];

const MyOrderListContainer = () => {
return <MyOrderList selectList={selectList} />;
return <MyOrderList />;
};

export default MyOrderListContainer;
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const EditButon = styled.button`
export const ProductInterestSection = styled.section`
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-row-gap: 30px;
grid-gap: 30px;
`;

export const ProductArticle = styled.article`
Expand Down
Empty file.

0 comments on commit 9a06559

Please sign in to comment.