diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-26 09:00:38 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-09-13 10:48:51 +0800 |
commit | 930dac110aa9127380673e119b0eaab9d45b1198 (patch) | |
tree | 365611642dd30a89bf3f9982fd8827e420c913dd /ui/app/components/card | |
parent | ce1975fbb4f36c83e64948968612b0c74a0b39b8 (diff) | |
download | tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar.gz tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar.bz2 tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar.lz tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar.xz tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.tar.zst tangerine-wallet-browser-930dac110aa9127380673e119b0eaab9d45b1198.zip |
Add ActivityLog component
Diffstat (limited to 'ui/app/components/card')
-rw-r--r-- | ui/app/components/card/card.component.js | 25 | ||||
-rw-r--r-- | ui/app/components/card/index.js | 1 | ||||
-rw-r--r-- | ui/app/components/card/index.scss | 11 |
3 files changed, 37 insertions, 0 deletions
diff --git a/ui/app/components/card/card.component.js b/ui/app/components/card/card.component.js new file mode 100644 index 000000000..bb7241da1 --- /dev/null +++ b/ui/app/components/card/card.component.js @@ -0,0 +1,25 @@ +import React, { PureComponent } from 'react' +import PropTypes from 'prop-types' +import classnames from 'classnames' + +export default class Card extends PureComponent { + static propTypes = { + className: PropTypes.string, + overrideClassName: PropTypes.bool, + title: PropTypes.string, + children: PropTypes.node, + } + + render () { + const { className, overrideClassName, title } = this.props + + return ( + <div className={classnames({ 'card': !overrideClassName }, className)}> + <div className="card__title"> + { title } + </div> + { this.props.children } + </div> + ) + } +} diff --git a/ui/app/components/card/index.js b/ui/app/components/card/index.js new file mode 100644 index 000000000..c3ca6e3f4 --- /dev/null +++ b/ui/app/components/card/index.js @@ -0,0 +1 @@ +export { default } from './card.component' diff --git a/ui/app/components/card/index.scss b/ui/app/components/card/index.scss new file mode 100644 index 000000000..68d972709 --- /dev/null +++ b/ui/app/components/card/index.scss @@ -0,0 +1,11 @@ +.card { + border-radius: 4px; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08); + padding: 16px 8px; + + &__title { + border-bottom: 1px solid #d8d8d8; + padding-bottom: 4px; + text-transform: capitalize; + } +} |