OSDN Git Service

update the i18n for the asset
[bytom/bytom-electron.git] / src / features / assets / components / ListItem.jsx
1 import React from 'react'
2 import { Link } from 'react-router'
3 import {withNamespaces} from 'react-i18next'
4
5 class ListItem extends React.Component {
6   render() {
7     const {item, t} = this.props
8
9     return(
10       <tr>
11         <td>{item.alias || '-'}</td>
12         <td><code>{item.id}</code></td>
13         <td>
14           <Link to={`/assets/${item.id}`}>
15             {t('commonWords.viewDetails')} →
16           </Link>
17         </td>
18       </tr>
19     )
20   }
21 }
22
23 export default withNamespaces('translations') ( ListItem)