diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-10-25 02:22:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 02:22:31 +0800 |
commit | ae56b865e8a4d3a6a82a97efeca34b8a592c985b (patch) | |
tree | b2d91f3094a096bee2e74c4306f5d71f1415f2a6 /mascara/src/app/first-time/breadcrumbs.js | |
parent | 61eea51310508714d753965e3055f533434001e7 (diff) | |
parent | 099078d13b7f8c3c9c4ca1e4d9e775f480b0ad8d (diff) | |
download | tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar.gz tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar.bz2 tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar.lz tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar.xz tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.tar.zst tangerine-wallet-browser-ae56b865e8a4d3a6a82a97efeca34b8a592c985b.zip |
Merge pull request #1990 from chikeichan/firsttimeflow
Implement Mascara First Time Flow
Diffstat (limited to 'mascara/src/app/first-time/breadcrumbs.js')
-rw-r--r-- | mascara/src/app/first-time/breadcrumbs.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mascara/src/app/first-time/breadcrumbs.js b/mascara/src/app/first-time/breadcrumbs.js new file mode 100644 index 000000000..f8460d200 --- /dev/null +++ b/mascara/src/app/first-time/breadcrumbs.js @@ -0,0 +1,25 @@ +import React, {Component, PropTypes} from 'react' + +export default class Breadcrumbs extends Component { + + static propTypes = { + total: PropTypes.number, + currentIndex: PropTypes.number + }; + + render() { + const {total, currentIndex} = this.props + return ( + <div className="breadcrumbs"> + {Array(total).fill().map((_, i) => ( + <div + key={i} + className="breadcrumb" + style={{backgroundColor: i === currentIndex ? '#D8D8D8' : '#FFFFFF'}} + /> + ))} + </div> + ); + } + +} |