Skip to content

Commit

Permalink
Remove unused code for Dark Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
berzniz committed Dec 13, 2020
1 parent d0e605f commit 04b1afd
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 34 deletions.
23 changes: 0 additions & 23 deletions src/js/components/bodyColor/index.jsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/js/components/options/index.jsx
Original file line number Diff line number Diff line change
@@ -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/'
Expand Down Expand Up @@ -28,7 +27,6 @@ class Options extends React.Component {
render () {
return (
<div className='container'>
<BodyColor isDark={false} />
<div className='text-center'>
<h1>Better Pull Request</h1>
<p>
Expand Down
4 changes: 1 addition & 3 deletions src/js/components/tree/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -199,7 +198,6 @@ class Tree extends React.Component {
))}
</div>
</div>
<BodyColor isDark={options.darkMode} />
</div>
)
}
Expand Down
5 changes: 0 additions & 5 deletions src/pages/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@ body {
cursor: not-allowed;
opacity: 0.5;
}

.__better_github_pr_dark_mode {
background-color: #282923;
color: #ffffff;
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
loader: 'style-loader!css-loader'
},
{
test: /\.(woff2)$/,
Expand Down

0 comments on commit 04b1afd

Please sign in to comment.