import React, { Fragment, PureComponent } from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; import 'typeface-roboto'; import AppBar from './standard/AppBar'; import AddPoll from './simple-voting/AddPoll'; import PollsList from './simple-voting/PollsList'; import StatusLogo from '../ui/components/StatusLogo'; import Collapse from '@material-ui/core/Collapse'; import { VotingContext } from '../context'; class Voting extends PureComponent { state = { addPoll: false }; render(){ const { addPoll } = this.state; const togglePoll = () => { this.setState({ addPoll: !addPoll })}; return ( {({ getPolls, rawPolls, toggleAdmin }) =>
{rawPolls && }
}
) } } export default Voting