diff --git a/src/js/components/bodyColor/index.jsx b/src/js/components/bodyColor/index.jsx deleted file mode 100644 index daae14b..0000000 --- a/src/js/components/bodyColor/index.jsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from 'react' - -const className = '__better_github_pr_dark_mode' - -class BodyColor extends React.Component { - componentDidMount () { - document.body.classList.toggle(className, Boolean(this.props.isDark)) - } - - componentDidUpdate () { - document.body.classList.toggle(className, Boolean(this.props.isDark)) - } - - componentWillUnmount () { - document.body.classList.remove(className) - } - - render () { - return null - } -} - -export default BodyColor diff --git a/src/js/components/options/index.jsx b/src/js/components/options/index.jsx index 20e5cc8..9c9eb39 100644 --- a/src/js/components/options/index.jsx +++ b/src/js/components/options/index.jsx @@ -1,6 +1,5 @@ import React from 'react' import { StorageSync } from '../../lib' -import BodyColor from '../bodyColor' const chromeStoreUrl = 'https://chrome.google.com/webstore/detail/github-pull-request-tree/nfhdjopbhlggibjlimhdbogflgmbiahc' const firefoxStoreUrl = 'https://addons.mozilla.org/en-US/firefox/addon/better-pull-request-for-github/' @@ -28,7 +27,6 @@ class Options extends React.Component { render () { return (
-

Better Pull Request

diff --git a/src/js/components/tree/index.jsx b/src/js/components/tree/index.jsx index 9cf23ba..6beacca 100644 --- a/src/js/components/tree/index.jsx +++ b/src/js/components/tree/index.jsx @@ -2,7 +2,6 @@ import React from 'react' import Actions from '../actions' import { createFileTree, isElementVisible, StorageSync, getBrowserApi, isElementTargetAndVisible } from '../../lib' import { createTree } from '../../createTree' -import BodyColor from '../bodyColor' const MIN_RESIZE_WIDTH = 55 const MAX_RESIZE_WIDTH = 700 @@ -174,7 +173,7 @@ class Tree extends React.Component { } render () { - const { root, filter, show, visibleElement, options } = this.state + const { root, filter, show, visibleElement } = this.state if (!show) { return null @@ -199,7 +198,6 @@ class Tree extends React.Component { ))}

- ) } diff --git a/src/pages/options.css b/src/pages/options.css index b11b725..5f8cbc2 100644 --- a/src/pages/options.css +++ b/src/pages/options.css @@ -20,8 +20,3 @@ body { cursor: not-allowed; opacity: 0.5; } - -.__better_github_pr_dark_mode { - background-color: #282923; - color: #ffffff; -} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 8d58054..1693672 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,7 +30,7 @@ module.exports = { }, { test: /\.css$/, - loader: 'style-loader!css-loader', + loader: 'style-loader!css-loader' }, { test: /\.(woff2)$/,