Skip to content

Commit

Permalink
🚚 Rename: followCount로 파일명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Dec 3, 2023
1 parent d8109d3 commit 9175433
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 45 deletions.
42 changes: 42 additions & 0 deletions src/components/Profile/ProfileCard/FollowCount.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React from 'react';
import styled from 'styled-components';
import { Link } from 'react-router-dom';

const FollowCount = ({ followType, userProfile }) => {
return (
<>
{followType === 'Followers' ? (
<Link to={`/profile/${userProfile.accountname}/follower`}>
<Container>
<Count>{userProfile.followerCount}</Count>
<span>followers</span>
</Container>
</Link>
) : (
<Link to={`/profile/${userProfile.accountname}/following`}>
<Container>
<Count>{userProfile.followingCount}</Count>
<span>followings</span>
</Container>
</Link>
)}
</>
);
};

export default FollowCount;

const Container = styled.div`
span {
font-size: ${({ theme }) => theme.fontSize.medium};
color: ${({ theme }) => theme.colors.textColor};
}
`;

const Count = styled.strong`
font-weight: 600;
display: block;
margin-bottom: 0.6rem;
color: ${({ theme }) => theme.colors.blackText};
font-size: ${({ theme }) => theme.fontSize.xlarge};
`;
45 changes: 0 additions & 45 deletions src/components/Profile/ProfileCard/ProfileFollow.jsx

This file was deleted.

0 comments on commit 9175433

Please sign in to comment.