This commit is contained in:
@@ -27,7 +27,7 @@ const MaterialCard = ({ tag }: { tag: TagWithMaterial }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PrefetchLink
|
<PrefetchLink
|
||||||
to={`/materials/${ tag.material.id }/edit`}
|
to={`/materials/${ tag.material.id }`}
|
||||||
className="block w-40 h-40">
|
className="block w-40 h-40">
|
||||||
<div
|
<div
|
||||||
className="w-full h-full overflow-hidden rounded-xl shadow
|
className="w-full h-full overflow-hidden rounded-xl shadow
|
||||||
@@ -95,7 +95,7 @@ export default (() => {
|
|||||||
withWiki={false}
|
withWiki={false}
|
||||||
withCount={false}
|
withCount={false}
|
||||||
to={tag.material
|
to={tag.material
|
||||||
? `/materials/${ tag.material.id }/edit`
|
? `/materials/${ tag.material.id }`
|
||||||
: `/materials?tag=${ encodeURIComponent (tag.name) }`}/>
|
: `/materials?tag=${ encodeURIComponent (tag.name) }`}/>
|
||||||
</PageTitle>
|
</PageTitle>
|
||||||
{(!(tag.material) && tag.category !== 'meme') && (
|
{(!(tag.material) && tag.category !== 'meme') && (
|
||||||
|
|||||||
Reference in New Issue
Block a user