-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #644 from depromeet/develop
[v2.4.7] 배포용 PR #643
- Loading branch information
Showing
23 changed files
with
533 additions
and
209 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @wooBottle @wade3420 @junoshon @sumi-0011 | ||
* @wooBottle @wade3420 @sumi-0011 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import React from 'react'; | ||
import Button from '@/components/Button/Button'; | ||
import Thumbnail from '@/components/Thumbnail/Thumbnail'; | ||
import { css } from '@styled-system/css'; | ||
|
||
interface RecommendFollowItemProps { | ||
id: number; | ||
nickname: string; | ||
profileImageUrl: string | null; | ||
tags: string[]; | ||
onChangeFollow: (id: number) => void; | ||
isFollowing: boolean; | ||
} | ||
|
||
function RecommendFollowItem({ | ||
profileImageUrl, | ||
nickname, | ||
tags, | ||
onChangeFollow, | ||
isFollowing, | ||
id, | ||
}: RecommendFollowItemProps) { | ||
const handleFollow = () => { | ||
onChangeFollow(id); | ||
}; | ||
|
||
return ( | ||
<div className={followItemWrapperCss}> | ||
<div className={leftWrapperCss}> | ||
<Thumbnail size={'h36'} variant={'filled'} url={profileImageUrl} /> | ||
<div> | ||
<p className={nicknameCss}>{nickname}</p> | ||
<ul className={tagListCss}> | ||
{tags.map((tag, index) => ( | ||
<li className={tagCss} key={index}> | ||
{tag} | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
</div> | ||
<Button onClick={handleFollow} size={'small'} variant={isFollowing ? 'secondary' : 'primary'}> | ||
{isFollowing ? '팔로우' : '팔로잉'} | ||
</Button> | ||
</div> | ||
); | ||
} | ||
|
||
export default React.memo(RecommendFollowItem); | ||
|
||
const leftWrapperCss = css({ | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '12px', | ||
}); | ||
|
||
const nicknameCss = css({ | ||
textStyle: 'subtitle4', | ||
color: 'text.secondary', | ||
}); | ||
const tagListCss = css({ | ||
display: 'flex', | ||
gap: '6px', | ||
}); | ||
|
||
const tagCss = css({ | ||
textStyle: 'body6', | ||
color: 'text.tertiary', | ||
}); | ||
|
||
const followItemWrapperCss = css({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
|
||
width: '100%', | ||
padding: '8px', | ||
}); |
Oops, something went wrong.