File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,16 +239,10 @@ const Feed: React.FC<FeedProps> = ({ feed }) => {
239239 < ReactionWrapper >
240240 < Reaction >
241241 < img className = "button" onClick = { handleRejectButtonClick } src = { xBtn } />
242- { isLikeClicked ? (
243- < div className = "button" onClick = { handleLikeButtonClick } >
244- { /*Heart 컴포넌트 자체적으로 onClick 이벤트 핸들러가 없기에 이벤트 버블링으로 인한 부모 div의 onClick 이벤트가 실행 됨*/ }
245- < Heart isFilled = { true } /> { ' ' }
246- </ div >
247- ) : (
248- < div className = "button" onClick = { handleLikeButtonClick } >
249- < Heart />
250- </ div >
251- ) }
242+ < div className = "button" onClick = { handleLikeButtonClick } >
243+ { /* Heart 컴포넌트의 isFilled 프로퍼티에 isLikeClicked 상태를 전달 */ }
244+ < Heart isFilled = { isLikeClicked } />
245+ </ div >
252246 </ Reaction >
253247 < MatchingBtn onClick = { handleMatchingButtonClick } >
254248 < Message color = "white" />
You can’t perform that action at this time.
0 commit comments