summaryrefslogtreecommitdiffhomepage
path: root/app/components/CustomScrollbars.js
blob: 2828f14f39a5ab24e46e2269a1df13f6312a39ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React, { Component, PropTypes } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';

export default class CustomScrollbars extends Component {
  static propTypes = {
    children: PropTypes.element
  }

  render() {
    return (
      <Scrollbars
        { ...this.props }
        renderThumbVertical={ () => <div className="custom-scrollbars__thumb-vertical"/> }>
        { this.props.children }
      </Scrollbars>
    );
  }
}