Show more link unconditionally
parent
cfe3695ba8
commit
b71e9bf5a5
@ -1,17 +1,13 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
export default function MoreLink({site, list, endpoint}) {
|
||||
if (list.length >= 5) {
|
||||
return (
|
||||
<div className="text-center">
|
||||
<Link to={`/${site.domain}/${endpoint}${window.location.search}`}className="font-bold text-sm text-grey-dark hover:text-red transition tracking-wide">
|
||||
<svg className="feather mr-1"><use xlinkHref="#feather-maximize" /></svg>
|
||||
MORE
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
export default function MoreLink({site, endpoint}) {
|
||||
return (
|
||||
<div className="text-center w-full absolute pin-b pin-l p-4">
|
||||
<Link to={`/${site.domain}/${endpoint}${window.location.search}`}className="font-bold text-sm text-grey-dark hover:text-red transition tracking-wide">
|
||||
<svg className="feather mr-1"><use xlinkHref="#feather-maximize" /></svg>
|
||||
MORE
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue