Removed unnecessary dependency

This commit is contained in:
Jesper Wrang 2018-01-14 01:03:08 +01:00
parent a4e750b8b3
commit d9fef06004
4 changed files with 412 additions and 836 deletions

1232
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,7 @@
"start": "webpack-dev-server --config webpack.dev.js",
"build": "webpack --config webpack.dev.js",
"build-prod": "webpack --config webpack.prod.js",
"clean": "rm -r node_modules && rm package-lock.json",
"gh-pages": "npm run build-prod && node publish.js"
},
"dependencies": {
@ -32,7 +33,6 @@
"react-redux": "^5.0.6",
"react-router-dom": "^4.2.2",
"redux": "^3.7.2",
"superagent": "^3.8.2",
"whatwg-fetch": "^2.0.3"
},
"devDependencies": {

View file

@ -27,11 +27,13 @@ class App extends React.Component {
<BrowserRouter basename={__dirname}>
<>
<Menu status={this.props.status}/>
<Switch>
<Route exact path='/' component={Thread} />
<Route path='/about' component={About}/>
<Route path='/r/:subreddit/comments/:threadID' component={Thread}/>
</Switch>
<div className='main'>
<Switch>
<Route exact path='/' component={Thread} />
<Route path='/about' component={About}/>
<Route path='/r/:subreddit/comments/:threadID' component={Thread}/>
</Switch>
</div>
</>
</BrowserRouter>
)

View file

@ -10,7 +10,7 @@ html, body
background-color: $background
font-family: verdana, arial, helvetica, sans-serif
#main
.main
margin: 15px
a