Kaynağa Gözat

Merge pull request #9375 from overleaf/mj-timeout-link

[web] Add missing link to compile timeout message

GitOrigin-RevId: 46af17a4fe0620ccf6dc29a27edfbf3ac79e856d
Alf Eaton 4 yıl önce
ebeveyn
işleme
c2b4a2d3ea

+ 4 - 6
services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js

@@ -233,12 +233,10 @@ function TimedOutLogEntry() {
         <p>
           <Trans
             i18nKey="project_timed_out_learn_more"
-            components={{
-              link: (
-                // eslint-disable-next-line jsx-a11y/anchor-has-content
-                <a href="https://www.overleaf.com/learn/how-to/Why_do_I_keep_getting_the_compile_timeout_error_message%3F" />
-              ),
-            }}
+            components={[
+              // eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key
+              <a href="https://www.overleaf.com/learn/how-to/Why_do_I_keep_getting_the_compile_timeout_error_message%3F" />,
+            ]}
           />
         </p>
       </ErrorLogEntry>