Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rede De Mentores
Frontend
Commits
0ec3672b
Commit
0ec3672b
authored
Jun 19, 2020
by
johnnyloreano
Browse files
Correcao de centralizacao de botoes nas telas de cadastroMentoria e as modais de ADM
parent
6032333c
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/components/RedeButton/StyledComponents/Cancelar.jsx
View file @
0ec3672b
...
...
@@ -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
}
;
...
...
src/pages/adm/StyledComponents/ButtonWrapper.jsx
0 → 100644
View file @
0ec3672b
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
;
src/pages/adm/StyledComponents/Modal.jsx
View file @
0ec3672b
...
...
@@ -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
>
...
...
src/pages/cadastro-mentoria/CadastroMentoria.jsx
View file @
0ec3672b
...
...
@@ -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
}
/>
...
...
src/pages/cadastro-mentoria/StyledComponents/Submit.jsx
View file @
0ec3672b
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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment