re-enable reposts for SIMPLE_SITE

This commit is contained in:
Sean Yesmunt 2020-09-17 11:49:53 -04:00
parent fa2d69f943
commit 51d8d85c60
2 changed files with 16 additions and 16 deletions

View file

@ -56,25 +56,24 @@ function FileActions(props: Props) {
onClick={() => openModal(MODALS.SOCIAL_SHARE, { uri, webShareable })}
/>
{!SIMPLE_SITE && (
<div className="button-group">
<div className="button-group">
<Button
button="alt"
icon={ICONS.REPOST}
label={__('Repost')}
requiresAuth={IS_WEB}
onClick={() => openModal(MODALS.REPOST, { uri })}
/>
{claim.meta.reposted > 0 && (
<Button
button="alt"
icon={ICONS.REPOST}
label={__('Repost')}
label={claim.meta.reposted}
requiresAuth={IS_WEB}
onClick={() => openModal(MODALS.REPOST, { uri })}
navigate={`/$/${PAGES.DISCOVER}?${CS.REPOSTED_URI_KEY}=${encodeURIComponent(uri)}`}
/>
{claim.meta.reposted > 0 && (
<Button
button="alt"
label={claim.meta.reposted}
requiresAuth={IS_WEB}
navigate={`/$/${PAGES.DISCOVER}?${CS.REPOSTED_URI_KEY}=${encodeURIComponent(uri)}`}
/>
)}
</div>
)}
)}
</div>
<ClaimSupportButton uri={uri} />
</>
);

View file

@ -92,7 +92,8 @@ function DiscoverPage(props: Props) {
return (
<Page noFooter fullWidthPage={tileLayout}>
<ClaimListDiscover
tileLayout={tileLayout}
header={<span />}
tileLayout={repostedUri ? false : tileLayout}
claimType={claimType ? [claimType] : undefined}
headerLabel={headerLabel}
tags={tags}