diff --git a/components/Collapse.js b/components/Collapse.js deleted file mode 100644 index d6b38c3..0000000 --- a/components/Collapse.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react' -import Toggle from './Toggle' - -import { toggle } from '../lib/util' - -class Collapse extends React.PureComponent { - state = { - open: false - } - - toggle = () => this.setState(toggle('open')) - - render() { - if (this.state.open) { - return this.props.children - } - return ( - - ) - } -} - -export default Collapse