Skip to content

Commit

Permalink
fix(Ticket/DetailBox): 티셔츠 사이즈 필드가 있을 때만 테이블 행 표시
Browse files Browse the repository at this point in the history
향후 옵션이 추가될 경우(ex: 아이돌봄) 리팩토링 해야함

REF: #247
Signed-off-by: cmygray <cmygray@gmail.com>
  • Loading branch information
cmygray committed Jul 16, 2019
1 parent 123a955 commit 6d2feee
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions components/organisms/Ticket/DetailBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ class DetailBox extends React.Component<PropsType> {
</Td>
</Tr>
}
{Object.keys(parsedOptions).map(key => {
return (
<Tr>
<Th>{key}</Th>
<Td>{parsedOptions[key]}</Td>
</Tr>
)
})}
{
parsedOptions['tshirtsize'] &&
<Tr>
<Th>티셔츠 사이즈</Th>
<Td>{parsedOptions['tshirtsize']}</Td>
</Tr>
}
</TBody>
</Table>
</ContentTableWrapper>
Expand Down

0 comments on commit 6d2feee

Please sign in to comment.