From 6756f09a77c0be57eb88e5cff13b6635fccbf58b Mon Sep 17 00:00:00 2001 From: Khoa Tran Date: Tue, 6 Jun 2017 01:41:07 +1000 Subject: [PATCH] fix issue with scroll synchronisation --- src/components/Indicator/Indicator.js | 6 ++-- src/components/Indicator/Indicator.scss | 4 +-- src/components/Navigation/Navigation.js | 6 ++-- .../NavigationMethod/NavigationMethod.js | 9 +++-- .../NavigationMethod/NavigationMethod.scss | 8 +++++ src/components/NavigationTag/NavigationTag.js | 33 ++++++++++++++----- .../NavigationTag/NavigationTag.scss | 8 +++++ .../ServiceContainer/ServiceContainer.js | 18 ++++------ src/handlers/BaseHandler.js | 2 +- 9 files changed, 61 insertions(+), 33 deletions(-) diff --git a/src/components/Indicator/Indicator.js b/src/components/Indicator/Indicator.js index 5f15e59..e67a1b4 100644 --- a/src/components/Indicator/Indicator.js +++ b/src/components/Indicator/Indicator.js @@ -8,11 +8,11 @@ const arrow = require('./arrow.png') export default class Indicator extends PureComponent { render () { - const { status, className } = this.props + const { direction, className } = this.props return ( @@ -21,6 +21,6 @@ export default class Indicator extends PureComponent { } Indicator.propTypes = { - status: PropTypes.string, + direction: PropTypes.string, className: PropTypes.string } diff --git a/src/components/Indicator/Indicator.scss b/src/components/Indicator/Indicator.scss index 8825947..65c715f 100644 --- a/src/components/Indicator/Indicator.scss +++ b/src/components/Indicator/Indicator.scss @@ -11,10 +11,10 @@ width: 20px; } -.indicator--open img { +.indicator--down img { transform: rotate(180deg); } .indicator--right img { transform: rotate(-90deg); -} \ No newline at end of file +} diff --git a/src/components/Navigation/Navigation.js b/src/components/Navigation/Navigation.js index 0608da3..5880258 100644 --- a/src/components/Navigation/Navigation.js +++ b/src/components/Navigation/Navigation.js @@ -31,9 +31,9 @@ export default class Navigation extends Component { return (