Skip to content

Commit 0f42afc

Browse files
committed
chore(dev-hub) Replace nextra Tabs component to fuma docs Tabs component
1 parent 5987724 commit 0f42afc

File tree

7 files changed

+40
-35
lines changed

7 files changed

+40
-35
lines changed

apps/developer-hub/content/docs/price-feeds/create-tradingview-charts.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Integrate TradingView charts with Pyth price data using widgets or
44
icon: "chart-bar"
55
---
66

7-
import { Tab, Tabs } from "nextra-theme-docs";
7+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
88

99
# How to Create TradingView Charts
1010

@@ -35,7 +35,7 @@ When deciding between the two, consider the user experience you want to provide,
3535
1. Add the following script(s) from [TradingView](https://www.tradingview.com/widget/advanced-chart/) to your website depending on your framework:
3636

3737
<Tabs items={['html', 'jsx']}>
38-
<Tab>
38+
<Tab value="html">
3939
```html copy
4040
<!-- TradingView Widget BEGIN -->
4141
<div class="tradingview-widget-container">
@@ -63,7 +63,7 @@ When deciding between the two, consider the user experience you want to provide,
6363
<!-- TradingView Widget END -->
6464
```
6565
</Tab>
66-
<Tab>
66+
<Tab value="jsx">
6767
```jsx copy
6868
// TradingViewWidget.jsx
6969

apps/developer-hub/content/docs/price-feeds/derive-cross-rate.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ description: "Learn how to combine two price feeds to create synthetic cross rat
44
icon: "arrows-cross"
55
---
66

7-
import { Callout, Tabs } from "nextra/components";
7+
import { Callout } from "nextra/components";
8+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
89

910
# Derive Cross Rate
1011

1112
This guide shows how to combine two price feeds to derive a cross rate. These are also known as "synthetic" price feeds.
1213
Cross rates or Synthetic Price feeds are useful for trading pairs that are not directly supported by Pyth.
1314

1415
<Tabs items={["EVM", "SVM"]}>
15-
<Tabs.Tab>
16+
<Tab value="EVM">
1617
### EVM
1718

1819
For example, if you want to trade the price of **`ETH/EUR{:jsx}`**, which is not directly supported by Pyth, you can combine the price of **`ETH/USD{:jsx}`** and **`EUR/USD{:jsx}`** to derive the price of **`ETH/EUR{:jsx}`**.
@@ -103,9 +104,9 @@ The [How to use real-time data in EVM contracts](./use-real-time-data/evm) guide
103104

104105
The [Price Feed IDs](./price-feeds.mdx) page lists the price feed IDs for each asset supported by Pyth.
105106

106-
</Tabs.Tab>
107+
</Tab>
107108

108-
<Tabs.Tab>
109+
<Tab value="SVM">
109110
### SVM
110111

111112
The Pyth Rust SDK provides [`get_price_in_quote`](https://github.com/pyth-network/pyth-sdk-rs/blob/d6598dcf8b556cd97bb597661cdc012398371be1/pyth-sdk/src/price.rs#L90) function to combine two price feeds.
@@ -121,6 +122,6 @@ let btc_eth: Price = btc_usd.get_price_in_quote(&eth_usd, -8);
121122
println!("BTC/ETH price: ({} +- {}) x 10^{}", price.price, price.conf, price.expo);
122123
```
123124

124-
</Tabs.Tab>
125+
</Tab>
125126

126127
</Tabs>

apps/developer-hub/content/docs/price-feeds/use-real-time-data/pull-integration/fuel.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: "Consume Pyth Network prices in Fuel applications using smart contr
44
icon: "Fire"
55
---
66

7-
import { Callout, Tabs } from "nextra/components";
7+
import { Callout } from "nextra/components";
8+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
89

910
# How to Use Real-Time Data in Fuel Contracts
1011

@@ -22,8 +23,8 @@ pyth_interface = { git = "https://github.com/pyth-network/pyth-crosschain", tag
2223
Pyth also provides a javascript SDK to interact with the Pyth contract on Fuel. You can install it using the following command:
2324

2425
<Tabs items={["npm", "yarn"]}>
25-
<Tabs.Tab>```npm install --save @pythnetwork/pyth-fuel-js ```</Tabs.Tab>
26-
<Tabs.Tab>```yarn add @pythnetwork/pyth-fuel-js ```</Tabs.Tab>
26+
<Tab value="npm">```npm install --save @pythnetwork/pyth-fuel-js ```</Tab>
27+
<Tab value="yarn">```yarn add @pythnetwork/pyth-fuel-js ```</Tab>
2728
</Tabs>
2829

2930
## Write Contract Code

apps/developer-hub/content/docs/price-feeds/use-real-time-data/pull-integration/iota.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: "Consume Pyth Network prices in IOTA applications using smart contr
44
icon: "Circle"
55
---
66

7-
import { Callout, Tabs } from "nextra/components";
7+
import { Callout } from "nextra/components";
8+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
89

910
# How to Use Real-Time Data in IOTA Contracts
1011

@@ -15,7 +16,7 @@ This guide explains how to use real-time Pyth data in IOTA applications.
1516
Use the following dependency in your `Move.toml` file to use the latest Pyth IOTA package and its dependencies:
1617

1718
<Tabs items={['IOTA Testnet', 'IOTA Mainnet']}>
18-
<Tabs.Tab>
19+
<Tab value="IOTA Testnet">
1920

2021
```sh copy
2122
[dependencies.Pyth]
@@ -34,8 +35,8 @@ subdir = "crates/iota-framework/packages/iota-framework"
3435
rev = "751c23caf24efd071463b9ffd07eabcb15f44f31"
3536
```
3637

37-
</Tabs.Tab>
38-
<Tabs.Tab>
38+
</Tab>
39+
<Tab value="IOTA Mainnet">
3940

4041
```sh copy
4142
[dependencies.Pyth]
@@ -54,13 +55,13 @@ subdir = "crates/iota-framework/packages/iota-framework"
5455
rev = "751c23caf24efd071463b9ffd07eabcb15f44f31"
5556
```
5657

57-
</Tabs.Tab>
58+
</Tab>
5859
</Tabs>
5960

6061
Pyth also provides a javascript SDK to construct transaction blocks that update price feeds:
6162

6263
<Tabs items={["IOTA"]}>
63-
<Tabs.Tab>
64+
<Tab value="IOTA">
6465
```sh
6566
# NPM
6667
npm install --save @pythnetwork/pyth-iota-js
@@ -69,7 +70,7 @@ Pyth also provides a javascript SDK to construct transaction blocks that update
6970
yarn add @pythnetwork/pyth-iota-js
7071
```
7172

72-
</Tabs.Tab>
73+
</Tab>
7374
</Tabs>
7475

7576
## Write Contract Code

apps/developer-hub/content/docs/price-feeds/use-real-time-data/pull-integration/starknet.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: "Consume Pyth Network prices in Starknet applications using Cairo s
44
icon: "Star"
55
---
66

7-
import { Callout, Tabs } from "nextra/components";
7+
import { Callout } from "nextra/components";
8+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
89

910
# How to Use Real-Time Data in Starknet Contracts
1011

@@ -22,20 +23,20 @@ pyth = { git = "https://github.com/pyth-network/pyth-crosschain.git", tag = "pyt
2223
Pyth also provides a javascript SDK to interact with the Pyth contract on Starknet. You can install it using the following command:
2324

2425
<Tabs items={["npm", "yarn"]}>
25-
<Tabs.Tab>
26+
<Tab value="npm">
2627

2728
```sh copy
2829
npm install --save @pythnetwork/pyth-starknet-js
2930
```
3031

31-
</Tabs.Tab>
32-
<Tabs.Tab>
32+
</Tab>
33+
<Tab value="yarn">
3334

3435
```sh copy
3536
yarn add @pythnetwork/pyth-starknet-js
3637
```
3738

38-
</Tabs.Tab>
39+
</Tab>
3940
</Tabs>
4041

4142
## Write Contract Code

apps/developer-hub/content/docs/price-feeds/use-real-time-data/pull-integration/sui.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: "Integrate Pyth Network real-time price data in Sui Move contracts
44
icon: "Drop"
55
---
66

7-
import { Callout, Tabs } from "nextra/components";
7+
import { Callout } from "nextra/components";
8+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
89

910
# How to Use Real-Time Data in Sui Contracts
1011

@@ -15,7 +16,7 @@ This guide explains how to use real-time Pyth data in Sui applications.
1516
Use the following dependency in your `Move.toml` file to use the latest Pyth Sui package and its dependencies:
1617

1718
<Tabs items={['Sui Mainnet', 'Sui Testnet']}>
18-
<Tabs.Tab>
19+
<Tab value="Sui Mainnet">
1920
```sh copy
2021
[dependencies.Pyth]
2122
git = "https://github.com/pyth-network/pyth-crosschain.git"
@@ -35,8 +36,8 @@ subdir = "crates/sui-framework/packages/sui-framework"
3536
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
3637

3738
````
38-
</Tabs.Tab>
39-
<Tabs.Tab>
39+
</Tab>
40+
<Tab value="Sui Testnet">
4041
```sh copy
4142
[dependencies.Pyth]
4243
git = "https://github.com/pyth-network/pyth-crosschain.git"
@@ -55,13 +56,13 @@ subdir = "crates/sui-framework/packages/sui-framework"
5556
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
5657
````
5758
58-
</Tabs.Tab>
59+
</Tab>
5960
</Tabs>
6061
6162
Pyth also provides a javascript SDK to construct transaction blocks that update price feeds:
6263
6364
<Tabs items={["Sui"]}>
64-
<Tabs.Tab>
65+
<Tab value="Sui">
6566
```sh
6667
# NPM
6768
npm install --save @pythnetwork/pyth-sui-js
@@ -70,7 +71,7 @@ Pyth also provides a javascript SDK to construct transaction blocks that update
7071
yarn add @pythnetwork/pyth-sui-js
7172
```
7273

73-
</Tabs.Tab>
74+
</Tab>
7475
</Tabs>
7576

7677
## Write Contract Code

apps/developer-hub/content/docs/price-feeds/use-real-time-data/pull-integration/ton.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Consume Pyth Network prices in TON applications using smart contra
44
icon: "Diamond"
55
---
66

7-
import { Tabs } from "nextra/components";
7+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
88

99
# How to Use Real-Time Data in TON Contracts
1010

@@ -15,20 +15,20 @@ This guide explains how to use real-time Pyth data in TON applications.
1515
Install the Pyth TON SDK and other necessary dependencies using npm:
1616

1717
<Tabs items={["npm", "yarn"]}>
18-
<Tabs.Tab>
18+
<Tab value="npm">
1919

2020
```sh copy
2121
npm install @pythnetwork/pyth-ton-js @pythnetwork/hermes-client @ton/core @ton/ton @ton/crypto
2222
```
2323

24-
</Tabs.Tab>
25-
<Tabs.Tab>
24+
</Tab>
25+
<Tab value="yarn">
2626

2727
```sh copy
2828
yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client @ton/core @ton/ton @ton/crypto
2929
```
3030

31-
</Tabs.Tab>
31+
</Tab>
3232
</Tabs>
3333

3434
## Write Contract Code

0 commit comments

Comments
 (0)