Commit 0ec3672b authored by johnnyloreano's avatar johnnyloreano
Browse files

Correcao de centralizacao de botoes nas telas de cadastroMentoria e as modais de ADM

parent 6032333c
......@@ -6,7 +6,6 @@ const Cancelar = css`
color: ${COLOR.AZUL};
background-color: ${COLOR.BRANCO};
border: solid 1px ${COLOR.AZUL};
margin: 10px 40px;
:hover {
color: ${COLOR.BRANCO};
......
import styled from "styled-components";
const ButtonWrapper = styled.div`
display: flex;
align-items: center;
place-content: center;
width: 100%;
position: relative;
button{
margin-left:10px;
margin-right:10px;
}
@media only screen and (max-width: 768px) {
width: 100%;
padding: 0px;
}
`;
export default ButtonWrapper;
......@@ -4,6 +4,7 @@ import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
import ButtonWrapper from './ButtonWrapper';
import RedeTextField from '../../../components/RedeTextField/RedeTextField';
import RedeButton from '../../../components/RedeButton/RedeButton';
......@@ -31,15 +32,17 @@ const Modal = ({
/>
</DialogContent>
<DialogActions>
<RedeButton
descricao="Cancelar"
onClick={handleClose}
cancelar
/>
<RedeButton
descricao="Aprovar"
onClick={editFunction}
/>
<ButtonWrapper>
<RedeButton
descricao="Cancelar"
onClick={handleClose}
cancelar
/>
<RedeButton
descricao="Aprovar"
onClick={editFunction}
/>
</ButtonWrapper>
</DialogActions>
</Dialog>
</div>
......
......@@ -316,7 +316,6 @@ function CadastroMentoria() {
</DivSelect>
</Container.SecondOption>
</Container.Form>
<Container.Submit>
<RedeButton descricao="Cancelar" cancelar onClick={(e) => cleanForm(e)} />
<RedeButton descricao={ActionButtonTitle} onClick={handleAddMentoria} />
......
import styled from 'styled-components';
const Submit = styled.div`
margin:0 auto;
width:85%;
display: flex;
align-items: center;
justify-content: center;
margin-left: 15px;
justify-content: space-evenly;
@media only screen and (max-width: 1024px) {
flex-direction: column;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment