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
Amparo
Amparo-frontend
Commits
607d5e55
Commit
607d5e55
authored
1 year ago
by
Pablo Montiel
Browse files
Options
Download
Email Patches
Plain Diff
hotfix MR
parent
3215c00e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/components/Modal/Components/SelectMedicamento/SelectMedicamento.css
+32
-0
.../Modal/Components/SelectMedicamento/SelectMedicamento.css
src/components/Modal/Components/SelectMedicamento/SelectMedicamento.tsx
+44
-0
.../Modal/Components/SelectMedicamento/SelectMedicamento.tsx
src/components/Modal/Components/SelectTime/SelectTime.css
+25
-0
src/components/Modal/Components/SelectTime/SelectTime.css
src/components/Modal/Components/SelectTime/SelectTime.tsx
+24
-0
src/components/Modal/Components/SelectTime/SelectTime.tsx
src/components/Modal/Modal.css
+1
-0
src/components/Modal/Modal.css
with
126 additions
and
0 deletions
+126
-0
src/components/Modal/Components/SelectMedicamento/SelectMedicamento.css
0 → 100644
View file @
607d5e55
.select-container
{
position
:
relative
;
width
:
290px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.caixa-de-selecao
{
width
:
100%
;
height
:
38px
;
border
:
none
;
border-radius
:
3px
;
outline
:
none
;
background-color
:
#eaeaea
;
padding-left
:
10px
;
font-family
:
Poppins
;
font-size
:
13px
;
font-weight
:
500
;
color
:
#696969
;
appearance
:
none
;
}
.arrow-icon
{
position
:
absolute
;
top
:
20%
;
right
:
10px
;
transform
:
translateY
(
-50%
);
pointer-events
:
none
;
color
:
#696969
;
transform
:
rotate
(
90deg
);
max-width
:
15px
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/Modal/Components/SelectMedicamento/SelectMedicamento.tsx
0 → 100644
View file @
607d5e55
import
'
./SelectMedicamento.css
'
;
import
ArrowForwardIosRoundedIcon
from
'
@mui/icons-material/ArrowForwardIosRounded
'
;
interface
SelectMedicamentoProps
{
onChange
:
(
nomeDoRemedio
:
string
)
=>
void
;
value
:
string
;
medicationList
?:
string
[];
}
export
default
function
SelectMedicamento
({
onChange
,
value
,
medicationList
}
:
SelectMedicamentoProps
)
{
const
handleChange
=
(
e
:
React
.
ChangeEvent
<
HTMLSelectElement
>
)
=>
{
const
nomeDoRemedio
=
e
.
target
.
value
;
onChange
(
nomeDoRemedio
);
}
const
exemploList
=
[
"
Remédio 1
"
,
"
Remédio 2
"
,
"
Remédio 3
"
]
const
list
=
(
medicationList
==
null
||
medicationList
==
undefined
)
?
exemploList
:
medicationList
;
return
(
<
div
className
=
'select-container'
>
<
select
className
=
'caixa-de-selecao'
onChange
=
{
handleChange
}
value
=
{
value
}
>
<
option
value
=
""
disabled
selected
>
Selecione o medicamento...
</
option
>
{
list
.
map
((
remedios
)
=>
(
<
option
key
=
{
remedios
}
value
=
{
remedios
}
>
{
remedios
}
</
option
>
))
}
</
select
>
<
ArrowForwardIosRoundedIcon
className
=
'arrow-icon'
/>
</
div
>
)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/Modal/Components/SelectTime/SelectTime.css
0 → 100644
View file @
607d5e55
.componente-time
{
width
:
300px
;
}
.horario
{
font-family
:
Poppins
;
color
:
#696969
;
font-size
:
13px
;
width
:
20px
;
overflow-wrap
:
break-word
;
}
.hora-minuto
{
height
:
0px
;
width
:
72px
;
border
:
none
;
border-radius
:
3px
;
outline
:
none
;
background-color
:
#eaeaea
;
padding-left
:
12px
;
font-family
:
Poppins
;
font-size
:
13px
;
font-weight
:
500
;
color
:
#696969
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/Modal/Components/SelectTime/SelectTime.tsx
0 → 100644
View file @
607d5e55
import
{
ChangeEvent
,
useState
}
from
'
react
'
;
import
'
./SelectTime.css
'
;
export
default
function
SelectTime
()
{
const
[
selectedTime
,
setSelectedTime
]
=
useState
(
'
00:00
'
);
const
handleTimeChange
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
setSelectedTime
(
event
.
target
.
value
);
}
return
(
<
div
className
=
'componente-time'
>
<
label
className
=
'horario'
>
Horário de Administração:
<
input
className
=
'hora-minuto'
type
=
'time'
value
=
{
selectedTime
}
onChange
=
{
handleTimeChange
}
/>
</
label
>
</
div
>
)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/Modal/Modal.css
View file @
607d5e55
...
...
@@ -47,4 +47,5 @@
font-style
:
normal
;
font-weight
:
500
;
line-height
:
normal
;
margin-left
:
-23px
;
}
This diff is collapsed.
Click to expand it.
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