From f29f97a00f0b2e9e006d2944580e7eae9113d1d2 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Sat, 1 Jul 2017 13:25:33 +0900 Subject: [PATCH] Add TrashButton component --- browser/main/Detail/TrashButton.js | 27 +++++++++++++++++++++++++++ browser/main/Detail/TrashButton.styl | 7 +++++++ 2 files changed, 34 insertions(+) create mode 100644 browser/main/Detail/TrashButton.js create mode 100644 browser/main/Detail/TrashButton.styl diff --git a/browser/main/Detail/TrashButton.js b/browser/main/Detail/TrashButton.js new file mode 100644 index 00000000..fb89465c --- /dev/null +++ b/browser/main/Detail/TrashButton.js @@ -0,0 +1,27 @@ +import React, { PropTypes } from 'react' +import CSSModules from 'browser/lib/CSSModules' +import styles from './TrashButton.styl' + +const TrashButton = ({ + onClick +}) => ( + +) + +TrashButton.propTypes = { + onClick: PropTypes.func.isRequired +} + +export default CSSModules(TrashButton, styles) diff --git a/browser/main/Detail/TrashButton.styl b/browser/main/Detail/TrashButton.styl new file mode 100644 index 00000000..a26095c4 --- /dev/null +++ b/browser/main/Detail/TrashButton.styl @@ -0,0 +1,7 @@ +.control-trashButton + float right + topBarButtonLight() + +body[data-theme="dark"] + .control-trashButton + topBarButtonDark()