You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
529 B
23 lines
529 B
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import styles from './Alias.scss'
|
|
|
|
const Alias = ({ alias, updateAlias }) => (
|
|
<div className={styles.container}>
|
|
<input
|
|
type="text"
|
|
placeholder="Satoshi"
|
|
className={styles.alias}
|
|
ref={input => input && input.focus()}
|
|
value={alias}
|
|
onChange={event => updateAlias(event.target.value)}
|
|
/>
|
|
</div>
|
|
)
|
|
|
|
Alias.propTypes = {
|
|
alias: PropTypes.string.isRequired,
|
|
updateAlias: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default Alias
|
|
|