OSDN Git Service

031fc771358a4d0b270e53dd03a24fc513292a41
[bytom/bytom-electron.git] / src / features / mockhsm / components / ListItem.jsx
1 import React from 'react'
2 import { Link } from 'react-router'
3
4 class ListItem extends React.Component {
5   constructor(props) {
6     super(props)
7   }
8
9   render() {
10     const item = this.props.item
11     const lang = this.props.lang
12
13     return(
14       <tr>
15         <td>{item.alias}</td>
16         <td><code>{item.xpub}</code></td>
17         <td><Link to={`/keys/${item.id}`}>
18           {lang === 'zh' ? '更多' : 'More'}
19         </Link></td>
20       </tr>
21     )
22   }
23 }
24
25 export default ListItem