re-enable reposts for SIMPLE_SITE
This commit is contained in:
parent
fa2d69f943
commit
51d8d85c60
2 changed files with 16 additions and 16 deletions
|
@ -56,25 +56,24 @@ function FileActions(props: Props) {
|
||||||
onClick={() => openModal(MODALS.SOCIAL_SHARE, { uri, webShareable })}
|
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
|
||||||
button="alt"
|
button="alt"
|
||||||
icon={ICONS.REPOST}
|
label={claim.meta.reposted}
|
||||||
label={__('Repost')}
|
|
||||||
requiresAuth={IS_WEB}
|
requiresAuth={IS_WEB}
|
||||||
onClick={() => openModal(MODALS.REPOST, { uri })}
|
navigate={`/$/${PAGES.DISCOVER}?${CS.REPOSTED_URI_KEY}=${encodeURIComponent(uri)}`}
|
||||||
/>
|
/>
|
||||||
{claim.meta.reposted > 0 && (
|
)}
|
||||||
<Button
|
</div>
|
||||||
button="alt"
|
|
||||||
label={claim.meta.reposted}
|
|
||||||
requiresAuth={IS_WEB}
|
|
||||||
navigate={`/$/${PAGES.DISCOVER}?${CS.REPOSTED_URI_KEY}=${encodeURIComponent(uri)}`}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<ClaimSupportButton uri={uri} />
|
<ClaimSupportButton uri={uri} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -92,7 +92,8 @@ function DiscoverPage(props: Props) {
|
||||||
return (
|
return (
|
||||||
<Page noFooter fullWidthPage={tileLayout}>
|
<Page noFooter fullWidthPage={tileLayout}>
|
||||||
<ClaimListDiscover
|
<ClaimListDiscover
|
||||||
tileLayout={tileLayout}
|
header={<span />}
|
||||||
|
tileLayout={repostedUri ? false : tileLayout}
|
||||||
claimType={claimType ? [claimType] : undefined}
|
claimType={claimType ? [claimType] : undefined}
|
||||||
headerLabel={headerLabel}
|
headerLabel={headerLabel}
|
||||||
tags={tags}
|
tags={tags}
|
||||||
|
|
Loading…
Add table
Reference in a new issue