Skip to content

Commit d103df6

Browse files
committed
Fix tutorials issues
1 parent 78d1eae commit d103df6

File tree

11 files changed

+12
-10
lines changed

11 files changed

+12
-10
lines changed

src/components/GuidesPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Guides({ content = {} }: GuidesInterface) {
2020

2121
const completeGuides = Object.entries(safeContent)
2222
.map(([key, value]) => {
23-
if (value && value.type === 'guide') return { ...value, link: `/guides/${key}` }
23+
if (value && value.type === 'guide') return { ...value, link: `/tutorials/${key}` }
2424
return null
2525
})
2626
.filter(Boolean)

src/pages/tutorials/android-wallet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import WalletPreview from '@site/static/img/guides/android-wallet-preview.png'
1717
title="Build your own Ethereum Web3 wallet in Android"
1818
description="Empower your Android app with a Ethereum Web3 wallet using the Web3Auth PnP SDK."
1919
image="https://docs.metamask.io/img/guides/guides-banners/android-wallet.png"
20-
slug="/guides/android-wallet"
20+
slug="/tutorials/android-wallet"
2121
/>
2222

2323
In this guide, we'll talk about how we can use Web3Auth to build your Ethereum Web3 wallet in Android. The wallet will only support the Ethereum ecosystem, but functionality can be extended with any blockchain ecosystem.

src/pages/tutorials/erc20-paymaster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Tabs from '@theme/Tabs'
1616
title="Send your first transaction with ERC-20 Paymaster"
1717
description="Learn how to use ERC-20 paymaster with Web3Auth Native Account Abstraction."
1818
image="https://web3auth.io/docs/img/guides/guides-banners/erc20-paymaster.png"
19-
slug="/guides/sending-gassless-transaction"
19+
slug="/tutorials/erc20-paymaster"
2020
/>
2121

2222
A paymaster is a vital component in the ERC-4337 standard, responsible for covering transaction costs on behalf of the user. There are various types of paymasters, such as gasless paymasters, ERC-20 paymasters, and more.

src/pages/tutorials/flutter-wallet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import WalletPreview from '@site/static/img/guides/flutter-wallet-preview.png'
1717
title="Build your own Chain Agnostic Web3 wallet in Flutter"
1818
description="Empower your Flutter app with a Chain Agnostic Web3 wallet using the Web3Auth PnP SDK."
1919
image="https://web3auth.io/docs/img/guides/guides-banners/flutter-wallet.png"
20-
slug="/guides/flutter-wallet"
20+
slug="/tutorials/flutter-wallet"
2121
/>
2222

2323
In this guide, we'll talk about how we can use Web3Auth to build your chain-agnostic Web3 wallet in Flutter. The wallet will support the Ethereum and Solana ecosystem.

src/pages/tutorials/pnp-no-modal-multichain.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Tabs from '@theme/Tabs'
1717
title="Create a Chain Agnostic Web3 Wallet with Web3Auth"
1818
description="Learn how to create a chain-agnostic Web3 wallet using Web3Auth"
1919
image="https://web3auth.io/docs/img/guides/guides-banners/multi.png"
20-
slug="/guides/pnp-no-modal-multichain-connection"
20+
slug="/tutorials/pnp-no-modal-multichain"
2121
/>
2222

2323
This guide will cover the basics of how to integrate Web3Auth with different blockchains at the same time. In this demo, you will be able to authenticate with different social logins and get different addresses from each blockchain. Of course, you can interact and sign transactions with any of them.

src/pages/tutorials/sending-gasless-transaction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Tabs from '@theme/Tabs'
1616
title="Send your first gasless transaction"
1717
description="Learn how to use gasless paymaster with Web3Auth Native Account Abstraction."
1818
image="https://web3auth.io/docs/img/guides/guides-banners/gasless-transaction.png"
19-
slug="/guides/sending-gassless-transaction"
19+
slug="/tutorials/sending-gasless-transaction"
2020
/>
2121

2222
A paymaster is a vital component in the ERC-4337 standard, responsible for covering transaction costs on behalf of the user. There are various types of paymasters, such as gasless paymasters, ERC-20 paymasters, and more.

src/pages/tutorials/telegram-miniapp-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import TelegramMiniAppDiagram from '@site/static/img/guides/telegram-mini-app-fl
1616
title="Client-Side Setup for Telegram Mini App with Web3Auth"
1717
description="Learn how to set up the client-side of a Telegram Mini App using Web3Auth to authenticate users and retrieve wallet details."
1818
image="https://web3auth.io/docs/img/guides/guides-banners/telegram-miniapp-client.png"
19-
slug="/guides/telegram-miniapp-client"
19+
slug="/tutorials/telegram-miniapp-client"
2020
/>
2121

2222
:::tip Live Demo

src/pages/tutorials/telegram-miniapp-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import TelegramMiniAppFlowDiagram from '@site/static/img/guides/telegram-mini-ap
1717
title="Server-Side Setup for Telegram Mini App with Web3Auth"
1818
description="Learn how to set up a server for a Telegram Mini App using Web3Auth and validate Telegram login data to generate JWT tokens."
1919
image="https://web3auth.io/docs/img/guides/guides-banners/telegram-miniapp-server.png"
20-
slug="/guides/telegram-miniapp-server"
20+
slug="/tutorials/telegram-miniapp-server"
2121
/>
2222

2323
:::tip Live Demo

src/pages/tutorials/telegram.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem'
2626
title="How to use Telegram OAuth with Web3Auth"
2727
description="Learn how to seamlessly integrate Telegram Login with Web3Auth to enhance your app's authentication capabilities."
2828
image="https://web3auth.io/docs/img/guides/guides-banners/telegram-oauth.png"
29-
slug="/guides/telegram"
29+
slug="/tutorials/telegram"
3030
/>
3131

3232
This guide will explain the basic steps of integrating the [Telegram Login Widget](https://core.telegram.org/widgets/login) _aka_ Telegram OAuth with Web3Auth for authentication. In this guide, you will learn how to create a Telegram bot, generate a JWKS file, and establish a custom JWT verifier on Web3Auth. Finally, we will demonstrate how to implement the Telegram OAuth flow for user authentication and generate Ethereum/Solana keys using [Web3Auth Plug and Play](https://web3auth.io/docs/sdk/web/install) and [Single Factor Auth](https://web3auth.io/docs/sdk/sfa/sfa-js/install) SDKs.

src/plugins/docusaurus-plugin-tutorials/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = (context, options) => ({
3333
async contentLoaded({ content, actions }) {
3434
const { createData, addRoute } = actions
3535
const contentHub = await createData('tutorials.json', JSON.stringify(content))
36+
37+
// Create the hub page that lists all tutorials
3638
addRoute({
3739
path: '/tutorials',
3840
exact: true,

0 commit comments

Comments
 (0)