From afbe9ebe01cd7b75da95a9d6abdef09413b05441 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 3 Jul 2017 22:29:41 +0900 Subject: [PATCH] Refactor LongPressButton (reloadButton, backButton, forwardButton) --- .../components/common/longPressButton.js | 34 +++++++++++++++++-- .../navigation/buttons/reloadButton.js | 34 +++++-------------- .../components/navigation/navigator.js | 26 +++++++------- 3 files changed, 54 insertions(+), 40 deletions(-) diff --git a/app/renderer/components/common/longPressButton.js b/app/renderer/components/common/longPressButton.js index 3b3d3df1a2f..710244b6ab3 100644 --- a/app/renderer/components/common/longPressButton.js +++ b/app/renderer/components/common/longPressButton.js @@ -4,6 +4,8 @@ const React = require('react') const ImmutableComponent = require('../immutableComponent') +const cx = require('../../../../js/lib/classSet') +const {StyleSheet, css} = require('aphrodite/no-important') class LongPressButton extends ImmutableComponent { constructor () { @@ -78,16 +80,42 @@ class LongPressButton extends ImmutableComponent { } render () { - return