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
70783075
Unverified
Commit
70783075
authored
Jun 29, 2020
by
Larissa Martins
Committed by
GitHub
Jun 29, 2020
Browse files
Merge pull request #39 from 2020-1-RDM/editartitulomentoria
Não pode editar o titulo da mentoria
parents
cbbac795
39fdf26c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pages/cadastro-mentoria/CadastroMentoria.jsx
View file @
70783075
...
...
@@ -99,7 +99,7 @@ function CadastroMentoria() {
enqueue
(
'
Selecione o tipo de mentoria
'
);
}
else
if
(
oldMentoria
)
{
if
(
typeof
image
===
'
string
'
//!!
typeof
image
===
'
string
'
//!
!
)
data
.
delete
(
'
image
'
);
const
headers
=
{
headers
:
{
param
:
{
id
:
oldMentoria
.
id
},
Authorization
:
`Bearer
${
token
}
`
}
};
atualizarMentoria
(
headers
,
data
).
then
((
res
)
=>
{
...
...
@@ -244,6 +244,7 @@ function CadastroMentoria() {
descricao
=
"Título"
valor
=
{
title
}
onChange
=
{
(
e
)
=>
setTitle
(
e
.
target
.
value
)
}
disabled
=
{
!!
oldMentoria
}
/>
<
RedeTextArea
descricao
=
"Descrição"
...
...
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