Unverified Commit bbda370d authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub

Merge pull request #2445 from paulkaplan/fix-preview-remix-list

Fix hard-coded /preview/id url for remix list.
parents bbb8c67e bc99c52e
...@@ -12,7 +12,7 @@ const ThumbnailColumn = props => ( ...@@ -12,7 +12,7 @@ const ThumbnailColumn = props => (
<FlexRow className={classNames('thumbnail-column', props.className)}> <FlexRow className={classNames('thumbnail-column', props.className)}>
{props.items.map((item, key) => { {props.items.map((item, key) => {
const href = `/${props.itemType}/${item.id}/`; const href = `/${props.itemType}/${item.id}/`;
if (props.itemType === 'preview') { if (props.itemType === 'projects') {
return ( return (
<Thumbnail <Thumbnail
avatar={thumbnailUrl(item.author.id)} avatar={thumbnailUrl(item.author.id)}
......
...@@ -20,7 +20,7 @@ const RemixList = props => { ...@@ -20,7 +20,7 @@ const RemixList = props => {
<ThumbnailColumn <ThumbnailColumn
cards cards
showAvatar showAvatar
itemType="preview" itemType="projects"
items={remixes.slice(0, 5)} items={remixes.slice(0, 5)}
showFavorites={false} showFavorites={false}
showLoves={false} showLoves={false}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment