Last active
January 22, 2019 23:00
-
-
Save carlosrbta/595240a21deec481e75f0547e1cd92db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { Drawer } from 'src/components' | |
| const MyDrawer = ({ open, setClose }) => ( | |
| <Drawer | |
| pullRight | |
| width={700} | |
| open={open} | |
| setClose={setClose} | |
| className="teste" | |
| > | |
| <Drawer.Header title="Convidar colaborador" iconName="download" /> | |
| <Drawer.Body> | |
| <div>Conteudo</div> | |
| </Drawer.Body> | |
| <Drawer.Footer> | |
| <Drawer.Action primary>Enviar Convite</Drawer.Action> | |
| <Drawer.Action>Enviar e convidar outros</Drawer.Action> | |
| <Drawer.Action onClick={setClose}>Cancelar</Drawer.Action> | |
| </Drawer.Footer> | |
| </Drawer> | |
| ) | |
| export default MyDrawer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
state = { open: false, }setClose = () => { this.setState(prevState => ({ open: !prevState.open, })) }<Button onClick={this.setClose}>Open sidebar</Button><MyDrawer open={this.state.open} setClose={this.setClose} />