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.
43 lines
1.1 KiB
43 lines
1.1 KiB
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import { FaCircle, FaCircleThin } from 'react-icons/lib/fa'
|
|
import styles from './Signup.scss'
|
|
|
|
const Signup = ({ signupForm, setSignupCreate, setSignupImport }) => (
|
|
<div className={styles.container}>
|
|
<section className={`${styles.enable} ${signupForm.create && styles.active}`}>
|
|
<div onClick={setSignupCreate}>
|
|
{
|
|
signupForm.create ?
|
|
<FaCircle />
|
|
:
|
|
<FaCircleThin />
|
|
}
|
|
<span className={styles.label}>
|
|
Create new wallet
|
|
</span>
|
|
</div>
|
|
</section>
|
|
<section className={`${styles.disable} ${signupForm.import && styles.active}`}>
|
|
<div onClick={setSignupImport}>
|
|
{
|
|
signupForm.import ?
|
|
<FaCircle />
|
|
:
|
|
<FaCircleThin />
|
|
}
|
|
<span className={styles.label}>
|
|
Import existing wallet
|
|
</span>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
)
|
|
|
|
Signup.propTypes = {
|
|
signupForm: PropTypes.object.isRequired,
|
|
setSignupCreate: PropTypes.func.isRequired,
|
|
setSignupImport: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default Signup
|
|
|