Skip to content

Commit

Permalink
[Rename] 텍스트 컴포넌트 반환함수 이름 변경 #86
Browse files Browse the repository at this point in the history
피드의 텍스트 정보를 반환하는 함수이므로 이에 맞게 함수명 변경
  • Loading branch information
WooYeonSeo committed Dec 12, 2019
1 parent 001c9e3 commit e0745c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/composition/DetailFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ const DetailFeed = ({ isOpen, feedId, closeModal }: Iprops) => {
variables: { feedId: feedId && Number(feedId) }
});

const valuecheck = () => {
const getTextFeed = () => {
const feed = data && data.feed;
return (
feed &&
feed.feed &&
feed.feed.createdAt && (
<ModalFeed
key={getDate(feed.feed.createdAt).toISOString()}
content={feed.feed.content}
feedinfo={feed}
createdAt={getDate(feed.feed.createdAt).toISOString()}
Expand All @@ -38,7 +37,7 @@ const DetailFeed = ({ isOpen, feedId, closeModal }: Iprops) => {
return (
<CommonModal
isOpen={isOpen}
textChildren={valuecheck()}
textChildren={getTextFeed()}
imageChildren={<></>}
closeModal={closeModal}
/>
Expand Down

0 comments on commit e0745c4

Please sign in to comment.