Skip to content

Commit 0e2c5d0

Browse files
lint
1 parent a61b402 commit 0e2c5d0

File tree

6 files changed

+26
-9
lines changed

6 files changed

+26
-9
lines changed

apps/playground-web/src/app/payments/embed/RightSection.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ export function RightSection(props: {
6666
tokenAddress={props.options.payOptions.buyTokenAddress}
6767
currency={props.options.payOptions.currency}
6868
showThirdwebBranding={props.options.payOptions.showThirdwebBranding}
69-
{...(props.options.payOptions.buttonLabel && { buttonLabel: props.options.payOptions.buttonLabel })}
69+
{...(props.options.payOptions.buttonLabel && {
70+
buttonLabel: props.options.payOptions.buttonLabel,
71+
})}
7072
/>
7173
);
7274
}
@@ -92,7 +94,9 @@ export function RightSection(props: {
9294
tokenAddress={props.options.payOptions.buyTokenAddress}
9395
currency={props.options.payOptions.currency}
9496
showThirdwebBranding={props.options.payOptions.showThirdwebBranding}
95-
{...(props.options.payOptions.buttonLabel && { buttonLabel: props.options.payOptions.buttonLabel })}
97+
{...(props.options.payOptions.buttonLabel && {
98+
buttonLabel: props.options.payOptions.buttonLabel,
99+
})}
96100
/>
97101
);
98102
}
@@ -114,7 +118,9 @@ export function RightSection(props: {
114118
})}
115119
currency={props.options.payOptions.currency}
116120
showThirdwebBranding={props.options.payOptions.showThirdwebBranding}
117-
{...(props.options.payOptions.buttonLabel && { buttonLabel: props.options.payOptions.buttonLabel })}
121+
{...(props.options.payOptions.buttonLabel && {
122+
buttonLabel: props.options.payOptions.buttonLabel,
123+
})}
118124
/>
119125
);
120126
}

packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,16 @@ export function FundWallet({
336336
}}
337337
variant="primary"
338338
>
339-
{uiOptions.buttonLabel || `Buy ${amount} ${uiOptions.destinationToken.symbol}`}
339+
{uiOptions.buttonLabel ||
340+
`Buy ${amount} ${uiOptions.destinationToken.symbol}`}
340341
</Button>
341342
) : (
342343
<ConnectButton
343344
client={client}
344345
connectButton={{
345-
label: uiOptions.buttonLabel || `Buy ${amount} ${uiOptions.destinationToken.symbol}`,
346+
label:
347+
uiOptions.buttonLabel ||
348+
`Buy ${amount} ${uiOptions.destinationToken.symbol}`,
346349
}}
347350
theme={theme}
348351
{...connectOptions}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ export const CustomButtonLabel: Story = {
233233
backgrounds: { default: "dark" },
234234
docs: {
235235
description: {
236-
story: "Example showcasing custom button label functionality. The button shows 'Purchase Now' instead of the default 'Buy Now' text.",
236+
story:
237+
"Example showcasing custom button label functionality. The button shows 'Purchase Now' instead of the default 'Buy Now' text.",
237238
},
238239
},
239240
},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ export const CustomButtonLabel: Story = {
204204
backgrounds: { default: "dark" },
205205
docs: {
206206
description: {
207-
story: "Example showcasing custom button label functionality. The button shows 'Add Funds Now' instead of the default 'Buy [amount] [symbol]' text.",
207+
story:
208+
"Example showcasing custom button label functionality. The button shows 'Add Funds Now' instead of the default 'Buy [amount] [symbol]' text.",
208209
},
209210
},
210211
},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ export const CustomButtonLabel: Story = {
178178
backgrounds: { default: "dark" },
179179
docs: {
180180
description: {
181-
story: "Example showcasing custom button label functionality. The button shows 'Execute Now' instead of the default 'Execute [functionName]' text.",
181+
story:
182+
"Example showcasing custom button label functionality. The button shows 'Execute Now' instead of the default 'Execute [functionName]' text.",
182183
},
183184
},
184185
},

packages/thirdweb/src/stories/Bridge/fixtures.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,12 @@ export const FUND_WALLET_UI_OPTIONS: Record<
732732

733733
// UI Options for DirectPayment mode
734734
export const DIRECT_PAYMENT_UI_OPTIONS: Record<
735-
"digitalArt" | "concertTicket" | "subscription" | "sneakers" | "credits" | "customButton",
735+
| "digitalArt"
736+
| "concertTicket"
737+
| "subscription"
738+
| "sneakers"
739+
| "credits"
740+
| "customButton",
736741
DirectPaymentUIOptions
737742
> = {
738743
concertTicket: {

0 commit comments

Comments
 (0)