Skip to content

Commit 90fef12

Browse files
committed
docs: adds theme stories
1 parent a10b218 commit 90fef12

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

packages/thirdweb/src/bridge/Token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function tokens(options: tokens.Options): Promise<tokens.Result> {
158158

159159
export declare namespace tokens {
160160
/**
161-
* Input parameters for {@link Bridge.tokens}.
161+
* Input parameters for {@link tokens}.
162162
*/
163163
type Options = {
164164
/** Your {@link ThirdwebClient} instance. */

packages/thirdweb/src/stories/Bridge/UnsupportedTokenScreen.stories.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ export const IndexingToken: Story = {
7878
},
7979
};
8080

81+
export const IndexingTokenLight: Story = {
82+
args: {
83+
theme: "light",
84+
chain: defineChain(1), // Ethereum mainnet - will show indexing spinner
85+
},
86+
parameters: {
87+
backgrounds: { default: "light" },
88+
docs: {
89+
description: {
90+
story:
91+
"Shows the loading state when a token is being indexed by the Universal Bridge on a mainnet chain (light theme).",
92+
},
93+
},
94+
},
95+
};
96+
8197
export const TestnetNotSupported: Story = {
8298
args: {
8399
theme: "dark",
@@ -93,3 +109,19 @@ export const TestnetNotSupported: Story = {
93109
},
94110
},
95111
};
112+
113+
export const TestnetNotSupportedLight: Story = {
114+
args: {
115+
theme: "light",
116+
chain: defineChain(11155111), // Sepolia testnet - will show error state
117+
},
118+
parameters: {
119+
backgrounds: { default: "light" },
120+
docs: {
121+
description: {
122+
story:
123+
"Shows the error state when trying to use the Universal Bridge on a testnet chain (Sepolia in this example, light theme).",
124+
},
125+
},
126+
},
127+
};

0 commit comments

Comments
 (0)