Ver Fonte

small fix

Shun Miyazawa há 3 anos atrás
pai
commit
d7fc78f2df
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/app/src/pages/share/[[...path]].page.tsx

+ 2 - 2
packages/app/src/pages/share/[[...path]].page.tsx

@@ -70,7 +70,7 @@ const SharedPage: NextPage<Props> = (props: Props) => {
             </div>
           )}
 
-          { isNotFound && (
+          { (isNotFound && !props.disableLinkSharing) && (
             <div className="container-lg">
               <h2 className="text-muted mt-4">
                 <i className="icon-ban" aria-hidden="true"></i>
@@ -79,7 +79,7 @@ const SharedPage: NextPage<Props> = (props: Props) => {
             </div>
           )}
 
-          { props.isExpired && (
+          { (props.isExpired && !props.disableLinkSharing) && (
             <div className="container-lg">
               <h2 className="text-muted mt-4">
                 <i className="icon-ban" aria-hidden="true"></i>