Shun Miyazawa 3 anni fa
parent
commit
d7fc78f2df
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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>