Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Culture
culture-views
Commits
1a0a48a8da9a
Commit
3877adc7
authored
Oct 05, 2020
by
Élodie Thiéblin
Browse files
[bienCulturelClass] Add key on span
parent
0ec80b51bf0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bienCulturelClass/bienCulturelClass.tsx
View file @
1a0a48a8
...
...
@@ -142,7 +142,11 @@ const BienCulturelClass: React.FC<BienCulturelClassProps> = (props) => {
<
div
>
<
h3
>
Filtrer par type alternatif :
</
h3
>
{
types
.
map
((
type
)
=>
(
<
span
onClick
=
{
()
=>
toggleSelectedType
(
type
)
}
style
=
{
{
cursor
:
'
pointer
'
}
}
>
<
span
key
=
{
type
+
'
span
'
}
onClick
=
{
()
=>
toggleSelectedType
(
type
)
}
style
=
{
{
cursor
:
'
pointer
'
}
}
>
<
URIBadge
key
=
{
type
}
uri
=
{
type
}
...
...
@@ -159,7 +163,11 @@ const BienCulturelClass: React.FC<BienCulturelClassProps> = (props) => {
<
div
>
<
h3
>
Filtrer par source :
</
h3
>
{
allGraphSource
.
map
((
currentGraph
)
=>
(
<
span
onClick
=
{
()
=>
toggleSelectedGraph
(
currentGraph
)
}
style
=
{
{
cursor
:
'
pointer
'
}
}
>
<
span
key
=
{
currentGraph
+
'
span
'
}
onClick
=
{
()
=>
toggleSelectedGraph
(
currentGraph
)
}
style
=
{
{
cursor
:
'
pointer
'
}
}
>
<
URIBadge
key
=
{
currentGraph
}
uri
=
{
currentGraph
}
selected
=
{
selectedGraph
===
currentGraph
}
/>
</
span
>
))
}
...
...
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