forked from RiseUP/riseup-squad23
agendamento resolvido
This commit is contained in:
parent
23a912e1c0
commit
815ce759cd
@ -276,29 +276,14 @@ const Agendamento = ({ setDictInfo }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>Gerenciar consultas</h1>
|
<h1>Agendar nova consulta</h1>
|
||||||
<div className="btns-gerenciamento-e-consulta" style={{ display: 'flex', gap: '10px', marginBottom: '20px' }}>
|
<div className="btns-gerenciamento-e-consulta" style={{ display: 'flex', gap: '10px', marginBottom: '20px' }}>
|
||||||
{/* LIMPA O OBJETO DE EDIÇÃO AO CLICAR EM "ADICIONAR" */}
|
{/* LIMPA O OBJETO DE EDIÇÃO AO CLICAR EM "ADICIONAR" */}
|
||||||
<<<<<<< HEAD
|
|
||||||
<button className="btn btn-primary" onClick={() => {
|
<button className="btn btn-primary" onClick={() => {
|
||||||
setPageConsulta(true);
|
setPageConsulta(true);
|
||||||
setEditingAppointmentId(null);
|
setEditingAppointmentId(null);
|
||||||
=======
|
|
||||||
{!PageNovaConsulta ?
|
|
||||||
<button className="btn btn-primary" onClick={() => {
|
|
||||||
setPageConsulta(true);
|
|
||||||
setEditingAppointmentId(null);
|
|
||||||
>>>>>>> b64b664621626393863bd367709ca331df3ec00c
|
|
||||||
setAppointmentToEdit(null); // <-- LIMPA O OBJETO AQUI PARA GARANTIR MODO CADASTRO
|
setAppointmentToEdit(null); // <-- LIMPA O OBJETO AQUI PARA GARANTIR MODO CADASTRO
|
||||||
}}><i className="bi bi-plus-circle"></i> Adicionar Consulta</button>
|
}}><i className="bi bi-plus-circle"></i> Adicionar Consulta</button>
|
||||||
:
|
|
||||||
<button className={"btn btn-primary"} onClick={() => {
|
|
||||||
setPageConsulta(false);
|
|
||||||
}}>
|
|
||||||
Ver consultas
|
|
||||||
</button>
|
|
||||||
|
|
||||||
}
|
|
||||||
<button className="manage-button btn" onClick={() => navigate("/secretaria/excecoes-disponibilidade")}><i className="bi bi-gear-fill me-1"></i> Gerenciar Exceções</button>
|
<button className="manage-button btn" onClick={() => navigate("/secretaria/excecoes-disponibilidade")}><i className="bi bi-gear-fill me-1"></i> Gerenciar Exceções</button>
|
||||||
<button className='manage-button btn' onClick={() => navigate('/secretaria/disponibilidade')}><i className="bi bi-gear-fill me-1"></i> Mudar Disponibilidade</button>
|
<button className='manage-button btn' onClick={() => navigate('/secretaria/disponibilidade')}><i className="bi bi-gear-fill me-1"></i> Mudar Disponibilidade</button>
|
||||||
</div>
|
</div>
|
||||||
@ -473,11 +458,5 @@ const Agendamento = ({ setDictInfo }) => {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
export default Agendamento;
|
export default Agendamento;
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
export default Agendamento;
|
|
||||||
>>>>>>> b64b664621626393863bd367709ca331df3ec00c
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user