Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Commit

Permalink
Create a generic SideBar
Browse files Browse the repository at this point in the history
- Use High Order Component to make it flexible
- Delete index-page side-bar
  • Loading branch information
nickhsine committed Jan 27, 2018
1 parent 0efca34 commit 059ddb4
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 232 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### UNRELEASED

### 4.0.0
- Create a Side Bar High Order Component in side-bar/components/side-bar.js
- Delete index-page/src/components/side-bar.js

### 3.0.2
- [Bug] Import Header component the right way

Expand Down
2 changes: 0 additions & 2 deletions index-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import ReporterIntro from './src/components/reporter-intro'
import ReviewsSection from './src/components/reviews'
import ScrollFadein from './src/components/animations/scroll-fadein'
import SeachBox from './src/components/search-box'
import SideBar from './src/components/side-bar'
import TopicsSection from './src/components/topics-section'

export default {
Expand All @@ -25,7 +24,6 @@ export default {
ReviewsSection,
ScrollFadein,
SeachBox,
SideBar,
TopicsSection,
},
}
224 changes: 0 additions & 224 deletions index-page/src/components/side-bar.js

This file was deleted.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "@twreporter/react-components",
"repository": "https://github.com/twreporter/twreporter-react-components.git",
"license": "AGPL-3.0",
"version": "3.0.2",
"version": "4.0.0",
"main": "lib/main.js",
"scripts": {
"lint": "eslint \"**/src/**/*.js\" --config .eslintrc",
"lint": "eslint \"**/*.js\" --config .eslintrc",
"lint-fix": "eslint \"**/*.js\" --config .eslintrc --fix",
"lint:eslint": "eslint --config .eslintrc",
"lint:staged": "lint-staged",
"clean:lib": "gulp clean-build",
Expand All @@ -22,6 +23,7 @@
"pre-commit": "lint:staged",
"devDependencies": {
"babel-core": "^6.17.0",
"babel-eslint": "^8.2.1",
"babel-plugin-inline-react-svg": "^0.4.0",
"babel-plugin-module-resolver": "^2.7.1",
"babel-plugin-styled-components": "^1.1.7",
Expand Down Expand Up @@ -52,6 +54,7 @@
},
"dependencies": {
"@twreporter/velocity-react": "^1.4.1",
"hoist-non-react-statics": "^2.3.1",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"react-router": "^3.0.0",
Expand Down
Loading

0 comments on commit 059ddb4

Please sign in to comment.