ryoji-s пре 2 година
родитељ
комит
7c897008ce
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      apps/app/src/components/ReactMarkdownComponents/RichAttachment.tsx

+ 3 - 3
apps/app/src/components/ReactMarkdownComponents/RichAttachment.tsx

@@ -58,9 +58,9 @@ export const RichAttachment: React.FC<{
           </div>
           </div>
           <div className="pl-0">
           <div className="pl-0">
             <div className="d-inline-block">
             <div className="d-inline-block">
-              {/* Since we need to include the "referer" to view the attachment on the shared page
-              we should avoid using target="_blank" */}
-              <a rel="noopener" href={filePathProxied}>
+              {/* Since we need to include the "referer" to view the attachment on the shared page */}
+              {/* eslint-disable-next-line react/jsx-no-target-blank */}
+              <a target="_blank" rel="noopener" href={filePathProxied}>
                 {attachmentName || originalName}
                 {attachmentName || originalName}
               </a>
               </a>
               <a className="ml-2 attachment-download" href={downloadPathProxied}>
               <a className="ml-2 attachment-download" href={downloadPathProxied}>