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
39fdf26c
Commit
39fdf26c
authored
Jun 29, 2020
by
Luis Santana
Browse files
Não pode editar o titulo da mentoria
parent
8cde943a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pages/cadastro-mentoria/CadastroMentoria.jsx
View file @
39fdf26c
...
...
@@ -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