Shun Miyazawa 3 лет назад
Родитель
Сommit
d7fc78f2df
1 измененных файлов с 2 добавлено и 2 удалено
  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>
             </div>
           )}
           )}
 
 
-          { isNotFound && (
+          { (isNotFound && !props.disableLinkSharing) && (
             <div className="container-lg">
             <div className="container-lg">
               <h2 className="text-muted mt-4">
               <h2 className="text-muted mt-4">
                 <i className="icon-ban" aria-hidden="true"></i>
                 <i className="icon-ban" aria-hidden="true"></i>
@@ -79,7 +79,7 @@ const SharedPage: NextPage<Props> = (props: Props) => {
             </div>
             </div>
           )}
           )}
 
 
-          { props.isExpired && (
+          { (props.isExpired && !props.disableLinkSharing) && (
             <div className="container-lg">
             <div className="container-lg">
               <h2 className="text-muted mt-4">
               <h2 className="text-muted mt-4">
                 <i className="icon-ban" aria-hidden="true"></i>
                 <i className="icon-ban" aria-hidden="true"></i>