@docusaurus/theme-classic 0.0.0-5331 → 0.0.0-5333

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import Translate from '@docusaurus/Translate';
9
+ import {ErrorBoundaryTryAgainButton} from '@docusaurus/theme-common';
9
10
  export default function ErrorPageContent({error, tryAgain}) {
10
11
  return (
11
12
  <main className="container margin-vert--xl">
@@ -20,13 +21,7 @@ export default function ErrorPageContent({error, tryAgain}) {
20
21
  </h1>
21
22
  <p>{error.message}</p>
22
23
  <div>
23
- <button type="button" onClick={tryAgain}>
24
- <Translate
25
- id="theme.ErrorPageContent.tryAgain"
26
- description="The label of the button to try again when the page crashed">
27
- Try again
28
- </Translate>
29
- </button>
24
+ <ErrorBoundaryTryAgainButton onClick={tryAgain} />
30
25
  </div>
31
26
  </div>
32
27
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-5331",
3
+ "version": "0.0.0-5333",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,18 +20,18 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "0.0.0-5331",
24
- "@docusaurus/mdx-loader": "0.0.0-5331",
25
- "@docusaurus/module-type-aliases": "0.0.0-5331",
26
- "@docusaurus/plugin-content-blog": "0.0.0-5331",
27
- "@docusaurus/plugin-content-docs": "0.0.0-5331",
28
- "@docusaurus/plugin-content-pages": "0.0.0-5331",
29
- "@docusaurus/theme-common": "0.0.0-5331",
30
- "@docusaurus/theme-translations": "0.0.0-5331",
31
- "@docusaurus/types": "0.0.0-5331",
32
- "@docusaurus/utils": "0.0.0-5331",
33
- "@docusaurus/utils-common": "0.0.0-5331",
34
- "@docusaurus/utils-validation": "0.0.0-5331",
23
+ "@docusaurus/core": "0.0.0-5333",
24
+ "@docusaurus/mdx-loader": "0.0.0-5333",
25
+ "@docusaurus/module-type-aliases": "0.0.0-5333",
26
+ "@docusaurus/plugin-content-blog": "0.0.0-5333",
27
+ "@docusaurus/plugin-content-docs": "0.0.0-5333",
28
+ "@docusaurus/plugin-content-pages": "0.0.0-5333",
29
+ "@docusaurus/theme-common": "0.0.0-5333",
30
+ "@docusaurus/theme-translations": "0.0.0-5333",
31
+ "@docusaurus/types": "0.0.0-5333",
32
+ "@docusaurus/utils": "0.0.0-5333",
33
+ "@docusaurus/utils-common": "0.0.0-5333",
34
+ "@docusaurus/utils-validation": "0.0.0-5333",
35
35
  "@mdx-js/react": "^1.6.22",
36
36
  "clsx": "^1.2.1",
37
37
  "copy-text-to-clipboard": "^3.0.1",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=16.14"
64
64
  },
65
- "gitHead": "a232eb8aec2b86c4a47add50291c0cdf874b8759"
65
+ "gitHead": "48a61fb7cc6ea72249f5c859c3068ea46e8d2625"
66
66
  }
@@ -7,6 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import Translate from '@docusaurus/Translate';
10
+ import {ErrorBoundaryTryAgainButton} from '@docusaurus/theme-common';
10
11
  import type {Props} from '@theme/Error';
11
12
 
12
13
  export default function ErrorPageContent({
@@ -26,13 +27,7 @@ export default function ErrorPageContent({
26
27
  </h1>
27
28
  <p>{error.message}</p>
28
29
  <div>
29
- <button type="button" onClick={tryAgain}>
30
- <Translate
31
- id="theme.ErrorPageContent.tryAgain"
32
- description="The label of the button to try again when the page crashed">
33
- Try again
34
- </Translate>
35
- </button>
30
+ <ErrorBoundaryTryAgainButton onClick={tryAgain} />
36
31
  </div>
37
32
  </div>
38
33
  </div>