Browse Source

small fix

Shun Miyazawa 3 năm trước cách đây
mục cha
commit
d7fc78f2df
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>