mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Removed unnecessary dependency
This commit is contained in:
parent
a4e750b8b3
commit
d9fef06004
4 changed files with 412 additions and 836 deletions
1232
package-lock.json
generated
1232
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ html, body
|
|||
background-color: $background
|
||||
font-family: verdana, arial, helvetica, sans-serif
|
||||
|
||||
#main
|
||||
.main
|
||||
margin: 15px
|
||||
|
||||
a
|
||||
|
|
|
|||
Loading…
Reference in a new issue