Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
274c749f
Commit
274c749f
authored
Sep 16, 2020
by
Stefan Probst
Browse files
fix: pass item categories to related items
parent
0adbb56a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/RelatedItems/RelatedItems.js
View file @
274c749f
...
...
@@ -7,7 +7,7 @@ import Grid from '../../elements/Grid/Grid'
import
Separator
from
'
../../elements/Separator/Separator
'
import
RelatedItem
from
'
../RelatedItem/RelatedItem
'
const
RelatedItems
=
({
items
})
=>
{
const
RelatedItems
=
({
items
,
itemCategories
})
=>
{
if
(
!
items
||
!
items
.
length
)
{
return
null
}
...
...
@@ -31,7 +31,7 @@ const RelatedItems = ({ items }) => {
>
{
items
.
map
(
item
=>
(
<
li
key
=
{
item
.
id
}
>
<
RelatedItem
item
=
{
item
}
/
>
<
RelatedItem
item
=
{
item
}
itemCategories
=
{
itemCategories
}
/
>
<
/li
>
))}
<
/Grid
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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