Skip to content

Commit

Permalink
ACT-1390: Faucet page routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Lo. committed Jul 9, 2024
1 parent f537678 commit b15b3bd
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ const config = {
label: "Infura dashboard",
to: "developer-tools/dashboard",
},
{
label: "Faucet",
to: "developer-tools/faucet",
},
],
},
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@apidevtools/json-schema-ref-parser": "^11.6.4",
"@docusaurus/core": "^3.0.0",
"@docusaurus/plugin-content-docs": "^3.0.0",
"@docusaurus/plugin-content-pages": "^3.4.0",
"@docusaurus/theme-common": "^3.0.0",
"@docusaurus/theme-mermaid": "^3.0.0",
"@mdx-js/react": "^3.0.0",
Expand Down
14 changes: 14 additions & 0 deletions src/pages/developer-tools/faucet.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import Layout from '@theme/Layout';

export default function Faucet() {
return (
<Layout title="Faucet" description="Faucet">
<div>
<p>
FAUCET PAGE
</p>
</div>
</Layout>
);
}
6 changes: 6 additions & 0 deletions src/pages/developer-tools/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import {Redirect} from '@docusaurus/router';

export default function DeveloperTools() {
return <Redirect to="/developer-tools/dashboard"/>;
}
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ __metadata:
languageName: node
linkType: hard

"@docusaurus/plugin-content-pages@npm:3.4.0, @docusaurus/plugin-content-pages@npm:^3.0.0":
"@docusaurus/plugin-content-pages@npm:3.4.0, @docusaurus/plugin-content-pages@npm:^3.0.0, @docusaurus/plugin-content-pages@npm:^3.4.0":
version: 3.4.0
resolution: "@docusaurus/plugin-content-pages@npm:3.4.0"
dependencies:
Expand Down Expand Up @@ -12594,6 +12594,7 @@ __metadata:
"@docusaurus/module-type-aliases": ^3.4.0
"@docusaurus/plugin-client-redirects": ^3.0.0
"@docusaurus/plugin-content-docs": ^3.0.0
"@docusaurus/plugin-content-pages": ^3.4.0
"@docusaurus/theme-common": ^3.0.0
"@docusaurus/theme-mermaid": ^3.0.0
"@docusaurus/tsconfig": ^3.4.0
Expand Down

0 comments on commit b15b3bd

Please sign in to comment.