mirror of
https://github.com/status-im/visual-identity.git
synced 2025-02-13 04:57:03 +00:00
add transistion for AddPoll
This commit is contained in:
parent
2b0b834827
commit
037c976826
@ -5,6 +5,7 @@ import AppBar from './standard/AppBar';
|
|||||||
import AddPoll from './simple-voting/AddPoll';
|
import AddPoll from './simple-voting/AddPoll';
|
||||||
import PollsList from './simple-voting/PollsList';
|
import PollsList from './simple-voting/PollsList';
|
||||||
import StatusLogo from '../ui/components/StatusLogo';
|
import StatusLogo from '../ui/components/StatusLogo';
|
||||||
|
import Collapse from '@material-ui/core/Collapse';
|
||||||
|
|
||||||
class Voting extends PureComponent {
|
class Voting extends PureComponent {
|
||||||
state = { addPoll: false };
|
state = { addPoll: false };
|
||||||
@ -20,7 +21,9 @@ class Voting extends PureComponent {
|
|||||||
<div style={{ margin: '30px', textAlign: 'center' }}>
|
<div style={{ margin: '30px', textAlign: 'center' }}>
|
||||||
<img src="images/logo.png" width="200" />
|
<img src="images/logo.png" width="200" />
|
||||||
</div>
|
</div>
|
||||||
{addPoll && <AddPoll togglePoll={togglePoll} />}
|
<Collapse in={addPoll}>
|
||||||
|
<AddPoll togglePoll={togglePoll} />
|
||||||
|
</Collapse>
|
||||||
{rawPolls && <PollsList rawPolls={rawPolls} />}
|
{rawPolls && <PollsList rawPolls={rawPolls} />}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user