blowfish/src/renderer/components/Welcome.jsx

21 lines
536 B
React
Raw Normal View History

2019-05-10 00:37:59 +02:00
import React from 'react'
import { Link } from '@reach/router'
import IconRocket from '../images/rocket.svg'
2019-06-05 00:03:19 +02:00
import styles from './Welcome.module.scss'
import { AppContext } from '../store/createContext'
2019-05-10 00:37:59 +02:00
const Welcome = () => (
2019-06-05 00:03:19 +02:00
<div className={styles.welcome}>
2019-05-10 00:37:59 +02:00
<IconRocket />
<AppContext.Consumer>
{context => (
<Link style={{ color: context.accentColor }} to="preferences">
Add your first address to get started.
</Link>
)}
</AppContext.Consumer>
2019-05-10 00:37:59 +02:00
</div>
)
export default Welcome