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
Job Quest
jobquest-web
Commits
90e6ca7c
Commit
90e6ca7c
authored
4 years ago
by
Micaela Lechmann
Browse files
Options
Download
Email Patches
Plain Diff
fixes
parent
4e4b94c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/GroupInput/index.js
+9
-5
src/components/GroupInput/index.js
with
9 additions
and
5 deletions
+9
-5
src/components/GroupInput/index.js
View file @
90e6ca7c
...
...
@@ -15,12 +15,14 @@ const GroupInput = ({
const
getValue
=
(
obj
)
=>
{
let
value
=
""
;
Object
.
keys
(
obj
).
splice
(
2
).
forEach
((
key
)
=>
{
Object
.
keys
(
obj
).
forEach
((
key
)
=>
{
if
(
!
obj
[
key
])
return
;
if
(
!
value
)
value
=
obj
[
key
];
if
(
!
value
)
{
value
=
obj
[
key
];
return
;
}
value
=
`
${
value
}
-
${
obj
[
key
]}
`
;
});
console
.
log
(
value
);
return
value
;
};
...
...
@@ -31,7 +33,8 @@ const GroupInput = ({
habilidades
.
map
((
habilidade
)
=>
(
<
ListSkills
value
=
{
getValue
({
...
habilidade
,
nome
:
habilidade
.
nome
,
instituicao
:
habilidade
.
instituicao
,
data_inicio
:
Intl
.
DateTimeFormat
(
"
pt-br
"
).
format
(
new
Date
(
habilidade
.
data_inicio
)
),
...
...
@@ -45,7 +48,8 @@ const GroupInput = ({
experiencias
.
map
((
experiencia
)
=>
(
<
ListSkills
value
=
{
getValue
({
...
experiencia
,
local
:
experiencia
.
local
,
funcao
:
experiencia
.
funcao
,
data_inicio
:
Intl
.
DateTimeFormat
(
"
pt-br
"
).
format
(
new
Date
(
experiencia
.
data_inicio
)
),
...
...
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