Skip to content

Commit

Permalink
feat: 남의 프로필 리뷰 일부 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
sap03110 committed Dec 5, 2023
1 parent 3918ea1 commit cc79ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/ui/your-page/profile.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import styled from '@emotion/styled';
import { Link } from 'react-router-dom';
import { useState, useEffect, useLayoutEffect } from 'react';
import { FaUserPlus } from 'react-icons/fa';
import { useSetAtom, useAtom, useAtomValue } from 'jotai';
import { css } from '@emotion/react';
import { YourProfileAtom } from '@/store/your-profile';
import { titleAtom } from '@/store/page-info';
import { ROOT_PATH } from '@/temp/global-variables';
import { fetch } from '@/apis/api';
import { formatNumber } from '@/lib/utils';
import { postFollow } from '@/apis/consumer';
Expand Down Expand Up @@ -158,7 +156,6 @@ const YourPageProfile = () => {
: yourProfile.followerConsumerIds?.filter((id: string) => id === myId),
}));
};
console.log(yourProfile.followerConsumerIds);

useEffect(() => {
setTitle('매거진');
Expand Down Expand Up @@ -222,12 +219,7 @@ const YourPageProfile = () => {
color: isFollow ? '#fff' : '#222',
}}
>
{isFollow ? '팔로우 중' : '팔로우 하기'}
</button>
</li>
<li>
<button>
<Link to={`${ROOT_PATH}/rank`}>컨슈머 랭킹</Link>
{isFollow ? '구독중' : '구독 취소하기'}
</button>
</li>
</ContentBox>
Expand Down
1 change: 1 addition & 0 deletions src/pages/your-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const TabStyle = styled.button<{ active: boolean }>`
margin-right: 8px;
background-color: ${(props) => (props.active ? '#222' : '#fff')};
color: ${(props) => (props.active ? '#fff' : '#222')};
font-family: Gmarket Sans;
`;

const GridContainer = styled.div`
Expand Down

0 comments on commit cc79ea8

Please sign in to comment.