Skip to content

Commit

Permalink
Add basePath to Next image (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-janon authored May 14, 2024
1 parent 220767f commit ac32642
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/Docs/components/OpenAPIBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const OpenAPIBrowser = () => {
setIsLoading(true);

try {
const response = await axios.get(`/data/openapi.swagger.yaml`, {
const response = await axios.get(`/docs/data/openapi.swagger.yaml`, {
responseType: "text",
});

Expand Down
2 changes: 1 addition & 1 deletion src/pages/developers/omnichain/liquidity-pools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Liquidity is provided to TSS addresses on connected chains, and then Uniswap (or
any exchange contract) can use those assets (ZRC-20) against ZETA or any other
asset.

<Image src="/img/graphs/zeta-pools-example.svg" alt="zeta-pools-example" width={763} height={452} className="w-full" />
<Image src="/docs/img/graphs/zeta-pools-example.svg" alt="zeta-pools-example" width={763} height={452} className="w-full" />

For example, you can see how cross-chain messaging functions using these core
pools that pair native gas (ZRC-20) with ZETA to pay for outbound transactions:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/users/keplr/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ To add ZetaChain to Keplr:

Now open the Keplr extension and you should see your ZetaChain balance:

<Image src="/img/docs/keplr-balances.png" width={400} height={670} alt="Keplr extension" />
<Image src="/docs/img/docs/keplr-balances.png" width={400} height={670} alt="Keplr extension" />
8 changes: 4 additions & 4 deletions src/pages/users/keplr/transfer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Image from "next/image";

To transfer tokens between accounts open the Keplr extension and click "Send":

<Image src="/img/docs/keplr-dashboard.png" width={400} height={670} alt="Keplr extension" />
<Image src="/docs/img/docs/keplr-dashboard.png" width={400} height={670} alt="Keplr extension" />

Next, select the asset you want to transfer. Note, that Keplr will only show
native and IBC tokens, but not ZRC-20 or ERC-20. Select ZETA from the list:

<Image src="/img/docs/keplr-assets.png" width={400} height={670} alt="Keplr extension - Select Asset" />
<Image src="/docs/img/docs/keplr-assets.png" width={400} height={670} alt="Keplr extension - Select Asset" />

Enter the recipient address in the bech32 format (`zeta***`) and the amount you
want to transfer. Please, note that the amount in Keplr is speficied in ZETA, so
Expand All @@ -18,9 +18,9 @@ Memo is optional and is often used when sending tokens to centralized exchanges.

Click "Next" to review the transaction details:

<Image src="/img/docs/keplr-send.png" width={400} height={670} alt="Keplr extension - Send" />
<Image src="/docs/img/docs/keplr-send.png" width={400} height={670} alt="Keplr extension - Send" />

Review the transaction details and click "Approve" to sign and broadcast the
transaction:

<Image src="/img/docs/keplr-approve.png" width={400} height={670} alt="Keplr extension - Confirm Transaction" />
<Image src="/docs/img/docs/keplr-approve.png" width={400} height={670} alt="Keplr extension - Confirm Transaction" />
8 changes: 4 additions & 4 deletions src/pages/users/leap/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import Image from "next/image";

To delegate your ZETA tokens to a validator, select the "Stake" tag in Leap:

<Image src="/img/docs/leap-stake.png" width={400} height={597} alt="Leap extension - Staking" />
<Image src="/docs/img/docs/leap-stake.png" width={400} height={597} alt="Leap extension - Staking" />

Choose a validator to delegate to:

<Image src="/img/docs/leap-validator.png" width={400} height={597} alt="Leap extension - Stake tZETA" />
<Image src="/docs/img/docs/leap-validator.png" width={400} height={597} alt="Leap extension - Stake tZETA" />

Enter the amount of ZETA you would like to delegate and click "Review":

<Image src="/img/docs/leap-review.png" width={400} height={597} alt="Leap extension - Stake Review" />
<Image src="/docs/img/docs/leap-review.png" width={400} height={597} alt="Leap extension - Stake Review" />

Review the transaction details and click "Confirm" to sign and broadcast the
transaction:

<Image src="/img/docs/leap-confirm.png" width={400} height={597} alt="Leap extension - Confirm Stake" />
<Image src="/docs/img/docs/leap-confirm.png" width={400} height={597} alt="Leap extension - Confirm Stake" />
2 changes: 1 addition & 1 deletion src/pages/users/leap/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ To add ZetaChain to Leap:

Now open the Leap extension and you should see your ZetaChain balance:

<Image src="/img/docs/leap-balances.png" width={400} height={597} alt="Leap extension" />
<Image src="/docs/img/docs/leap-balances.png" width={400} height={597} alt="Leap extension" />
2 changes: 1 addition & 1 deletion src/pages/users/zetahub/earn-zeta-xp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ As you earn more XP, you can also watch yourself move up the Global Leaderboard,
on the right hand side. Leaderboard status is based on XP accumulated. Compete
with other users to climb to the top!

<Image src="/img/docs/zetahub/earn-zeta-xp-4.png" width={400} height={850} alt="XP Leaderboard" />
<Image src="/docs/img/docs/zetahub/earn-zeta-xp-4.png" width={400} height={850} alt="XP Leaderboard" />
2 changes: 1 addition & 1 deletion src/pages/users/zetahub/send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ When you select Bitcoin in the “from” network selector, you will be prompted
to login to XDEFI. If you don’t have an account with XDEFI, you will have to
create one first.

<Image src="/img/docs/zetahub/send-3.png" width={400} height={524} alt="XDEFI Wallet login" />
<Image src="/docs/img/docs/zetahub/send-3.png" width={400} height={524} alt="XDEFI Wallet login" />

Once logged in and once you have a positive balance, you will be able to
complete the transaction.

0 comments on commit ac32642

Please sign in to comment.