diff --git a/src/components/ModalInMobile/ModalInMobile.example.js b/src/components/ModalInMobile/ModalInMobile.example.js index e43f680f..7306b8f7 100644 --- a/src/components/ModalInMobile/ModalInMobile.example.js +++ b/src/components/ModalInMobile/ModalInMobile.example.js @@ -1,9 +1,14 @@ /* eslint-disable no-console, import/prefer-default-export */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; import { Button } from '../../components'; import ModalInMobile from './ModalInMobile'; import css from './ModalInMobile.example.css'; +const togglePageClassNames = (className, addClass = true) => { + // We are just checking the value for now + console.log('Toggling ModalInMobile - currently:', className, addClass); +} + class ModalInMobileWrapper extends Component { constructor(props) { super(props); @@ -11,15 +16,6 @@ class ModalInMobileWrapper extends Component { this.handleOpen = this.handleOpen.bind(this); } - getChildContext() { - return { - togglePageClassNames: (className, addClass = true) => { - // We are just checking the value for now - console.log('Toggling ModalInMobile - currently:', className, addClass); - }, - }; - } - handleOpen() { this.setState({ isOpen: true }); } @@ -28,7 +24,10 @@ class ModalInMobileWrapper extends Component { return (