diff --git a/src/components/AgendarConsulta/FormNovaConsulta.jsx b/src/components/AgendarConsulta/FormNovaConsulta.jsx
index 2dbd572..6a0e5dd 100644
--- a/src/components/AgendarConsulta/FormNovaConsulta.jsx
+++ b/src/components/AgendarConsulta/FormNovaConsulta.jsx
@@ -1,8 +1,26 @@
import React from "react";
import InputMask from "react-input-mask";
import "./style/formagendamentos.css";
+import { useState } from "react";
+
const FormNovaConsulta = ({ onCancel }) => {
+
+ const [acessibilidade, setAcessibilidade] = useState({cadeirante:false,idoso:false,gravida:false,bebe:false, autista:false })
+ const handleclickAcessibilidade = (id) => {
+ let resultado = acessibilidade[id]
+
+ if(resultado === false){ setAcessibilidade({...acessibilidade, [id]:true}); console.log('mudou')}
+
+ else if(resultado === true){ setAcessibilidade({...acessibilidade, [id]:false})}
+
+
+
+
+
+ console.log(id)
+
+ }
const BuscarCPFnoBancodeDados = (cpf) => {
@@ -112,7 +130,35 @@ fetch("https://mock.apidog.com/m1/1053378-0-default/pacientes/validar-cpf", requ
Informações do atendimento
+
+
+
+
handleclickAcessibilidade(e.currentTarget.id)}>
+
+ accessible
+
+
+
handleclickAcessibilidade(e.currentTarget.id)}>
+ elderly
+
+
+
handleclickAcessibilidade(e.currentTarget.id)}>
+ pregnant_woman
+
+
+
handleclickAcessibilidade(e.currentTarget.id)}>
+
+
+
+
+
handleclickAcessibilidade(e.currentTarget.id)}>
+
+
+
+
+
-
-
- accessible
- elderly
- pregnant_woman
- child_care
- accessibility_new
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/components/AgendarConsulta/style/formagendamentos.css b/src/components/AgendarConsulta/style/formagendamentos.css
index 7bb5276..afb1403 100644
--- a/src/components/AgendarConsulta/style/formagendamentos.css
+++ b/src/components/AgendarConsulta/style/formagendamentos.css
@@ -3,23 +3,50 @@
.icons-container {
display: flex;
gap: 10px;
+ justify-content: flex-end;
+ margin-bottom: -7px;
}
-.icon {
- font-family: 'Material Symbols Outlined';
- font-size: 36px;
- padding: 12px;
- border: 1px solid #d1d5db;
- border-radius: 12px;
+.acessibilidade-ativado{
+ background-color: #1e3a8a;
+ border: none;
+}
+.acessibilidade-ativado svg, .acessibilidade-ativado .icon{
+ color: white;
+}
+
+
+.icons-div{
+ border: 1px solid #607080;
+ padding: 10px;
display: flex;
align-items: center;
justify-content: center;
- width: 56px;
- height: 56px;
- cursor: default;
+ height: 40px;
+ width: 40px;
+ border-radius: 10px;
+ cursor: pointer;
+ transition: 0.3s;
}
+.icons-div:hover{
+ background-color: #1e3a8a;
+ }
+ .icons-div:hover svg, .icons-div:hover .icon{
+ color:white;
+ }
+svg{
+ color:black;
+
+}
+.icon {
+ font-family: 'Material Symbols Outlined';
+ font-size: 20px;
+ color:black
+
+
+}
.form-container {
/*max-width: 800px;*/
@@ -180,4 +207,4 @@ select[name=solicitante]{
.campo-de-input{
width:120%
-}
\ No newline at end of file
+}