Skip to content

Commit

Permalink
fix error tr div
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-isa committed May 5, 2021
1 parent c9f2e91 commit 30ead09
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/views/products/types/Type.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,20 @@ const Type = ({match}) => {
<Header title="Detail Tipe Produk" type="kembali" link="/produk/tipe"/>
{ (isload === true) ? <Loadwait /> :
<CCardBody>
<table>
{
details.map(([key, value], index) => {
return (
<tr key={index.toString()}>
<td>{`${key}:`}</td>
<td><strong>{value}</strong></td>
</tr>
<tbody key={index.toString()}>
<tr>
<td>{`${key}:`}</td>
<td><strong>{value}</strong></td>
</tr>
</tbody>
)
})
}
</table>
</CCardBody>
}
</CCard>
Expand Down

0 comments on commit 30ead09

Please sign in to comment.