diff --git a/src/components/AgendarConsulta/FormNovaConsulta.jsx b/src/components/AgendarConsulta/FormNovaConsulta.jsx index 4469ba0..12bc3c0 100644 --- a/src/components/AgendarConsulta/FormNovaConsulta.jsx +++ b/src/components/AgendarConsulta/FormNovaConsulta.jsx @@ -1,80 +1,122 @@ -import React from 'react' +import React from "react"; +import InputMask from "react-input-mask"; + +const FormNovaConsulta = ({ onCancel }) => { + const handleSubmit = (e) => { + e.preventDefault(); + alert("Agendamento salvo!"); + }; -const FormNovaConsulta = ( {onCancel}) => { return (
+

Novo Agendamento

-
+ +

Informações do paciente

-

Informações do paciente

- - + + +

- - + + + {(inputProps) => } + +

- - + + +

- - + + +

- - + + + {(inputProps) => } + +
- - +

- - - - - - - + + +

+ + +

-

Informações do atendimento

- - - - + + + {(inputProps) => } + - - +

- - +

Informações adicionais

+ - - +

Informações do atendimento

- - + + + + - - + + - - + + - - + + -
+ + + + + + + + + + + + +

Acessibilidade

+ + + + + +

+ + +
- ) -} + ); +}; -export default FormNovaConsulta \ No newline at end of file +export default FormNovaConsulta; \ No newline at end of file diff --git a/src/pages/Agendamento.jsx b/src/pages/Agendamento.jsx index dfde03c..169bb11 100644 --- a/src/pages/Agendamento.jsx +++ b/src/pages/Agendamento.jsx @@ -7,7 +7,7 @@ import FormNovaConsulta from '../components/AgendarConsulta/FormNovaConsulta'; import { useState, useEffect } from 'react'; import dayjs from 'dayjs' -const Agendamento = ( {setCurrentPage }) => { +const Agendamento = () => { const ListarDiasdoMes = (ano, mes) => { @@ -50,7 +50,7 @@ const Agendamento = ( {setCurrentPage }) => { } const [tabela, setTabela] = useState('diario') - const [PageNovaConsulta, setPageConsulta] = useState(false) + const [PageNovaConsulta, setPageConsulta] = useState(true) const handleClickAgendamento = (agendamento) => {