From f1fc33083827d54a3952cf6e4cb450c86f235776 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 7 Feb 2019 18:38:05 -0800 Subject: [PATCH] remove old Collapse component --- components/Collapse.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 components/Collapse.js 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