import React, { Component } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' export const Divider = () =>
export default class Dropdown extends Component { static propTypes = { dropup: PropTypes.bool, className: PropTypes.string, btnClass: PropTypes.string.isRequired } static defaultProps = { dropup: false } constructor(props, context) { super(props, context) this.state = { open: false } this.close = this.close.bind(this) this.open = this.open.bind(this) } close() { this.setState({ open: false }) document.removeEventListener('click', this.close) } open(e){ e.preventDefault() if (this.state.open) { return } this.setState({open: !this.state.open}) document.addEventListener('click', this.close) } render() { const {dropup, className, btnClass, text, children} = this.props return (
{text}
) } } table class='tabs'> aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/mk.linux-2.6-native
blob: c7c094937189088bf5f0b357e6d49e73299b65ac (plain)
1
2
3
4
5