From 886e2c9a823bd1c08c05a308b3eaef68cb719c45 Mon Sep 17 00:00:00 2001 From: Andrew Hrdy Date: Thu, 28 Dec 2017 12:26:05 -0500 Subject: [PATCH] Revert to native scrolling. --- package.json | 2 -- src/components/Sidebar.js | 5 ++--- src/containers/Layout.js | 7 ++----- src/styles/components/sidebar.scss | 4 ++-- src/styles/containers/layout.scss | 4 ---- 5 files changed, 6 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index e02c69c..296646b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "fuzzysearch": "^1.0.3", "history": "^4.6.3", "immutability-helper": "^2.3.0", - "install": "^0.10.2", "mapbox": "^1.0.0-beta9", "mapbox-gl": "^0.40.1", "material-ui": "^1.0.0-beta.24", @@ -20,7 +19,6 @@ "react": "^15.6.1", "react-autosuggest": "^9.3.2", "react-classnames": "^0.1.2", - "react-custom-scrollbars": "^4.2.1", "react-dom": "^15.6.1", "react-mapbox-gl": "^2.5.2", "react-redux": "^5.0.5", diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js index b937328..6083c3d 100644 --- a/src/components/Sidebar.js +++ b/src/components/Sidebar.js @@ -11,7 +11,6 @@ import Chip from 'material-ui/Chip'; import WeekHours from './WeekHours'; import { toggleSidebar } from '../actions/ui'; import FacilityTags from './FacilityTags'; -import { Scrollbars } from 'react-custom-scrollbars'; const Sidebar = ({facility, isSidebarOpen, isSidebarMapOpen, toggleSidebarMap, facilities}) => { @@ -49,7 +48,7 @@ const Sidebar = ({facility, isSidebarOpen, isSidebarMapOpen, toggleSidebarMap, f - +
@@ -57,7 +56,7 @@ const Sidebar = ({facility, isSidebarOpen, isSidebarMapOpen, toggleSidebarMap, f }/> }/>
- +
diff --git a/src/containers/Layout.js b/src/containers/Layout.js index 9bd4786..9a1cbd6 100644 --- a/src/containers/Layout.js +++ b/src/containers/Layout.js @@ -5,11 +5,8 @@ import AppBar from '../components/AppBar'; import Sidebar from '../components/Sidebar'; import {getFacilities, setFacilities,sortByFavorites} from '../actions/api'; import CardContainer from '../components/CardContainer'; -import SearchBar from './SearchBar'; import KeyboardArrowLeft from 'material-ui-icons/KeyboardArrowLeft'; import KeyboardArrowRight from 'material-ui-icons/KeyboardArrowRight'; -import { Scrollbars } from 'react-custom-scrollbars'; - class Layout extends React.Component { constructor(props) { @@ -47,10 +44,10 @@ class Layout extends React.Component { }}/>
- +
- +