Skip to content

Commit 7ff1161

Browse files
committed
refactor: simplify RainbowKit provider configuration and button styling
1 parent 0076ce3 commit 7ff1161

File tree

2 files changed

+6
-35
lines changed

2 files changed

+6
-35
lines changed

src/components/StartWithEthereumFlow/DownloadAWallet/index.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const DownloadAWallet = ({
5252
</div>
5353
<Button
5454
disabled={!hasWallet}
55+
className="w-fit px-10"
5556
onClick={() => {
5657
handleNext()
5758
trackCustomEvent({
@@ -61,7 +62,7 @@ const DownloadAWallet = ({
6162
})
6263
}}
6364
>
64-
Next
65+
Continue
6566
</Button>
6667
</div>
6768
</div>
@@ -92,12 +93,7 @@ const DownloadAWallet = ({
9293
</div>
9394
<p className="text-body">{wallet.name}</p>
9495
</div>
95-
<ButtonLink
96-
href={wallet.url}
97-
variant="outline"
98-
isSecondary
99-
size="sm"
100-
>
96+
<ButtonLink href={wallet.url} variant="outline" size="sm">
10197
Get wallet
10298
</ButtonLink>
10399
</div>
@@ -121,6 +117,7 @@ const DownloadAWallet = ({
121117
</div>
122118
<Button
123119
disabled={!hasWallet}
120+
className="w-full px-10 lg:w-fit"
124121
onClick={() => {
125122
handleNext()
126123
trackCustomEvent({
@@ -130,7 +127,7 @@ const DownloadAWallet = ({
130127
})
131128
}}
132129
>
133-
Next
130+
Continue
134131
</Button>
135132
</div>
136133
</div>

src/components/WalletProviders.tsx

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,22 @@
11
import { WagmiProvider } from "wagmi"
22
import { type Locale, RainbowKitProvider } from "@rainbow-me/rainbowkit"
33

4-
import { ButtonLink } from "@/components/ui/buttons/Button"
5-
64
import { rainbowkitConfig } from "@/config/rainbow-kit"
75

86
interface WalletProvidersProps {
97
children: React.ReactNode
108
locale: string | undefined
119
}
1210

13-
const Disclaimer = () => {
14-
return (
15-
<div className="flex flex-col gap-2">
16-
<div>
17-
<p className="text-md font-bold">What is a wallet?</p>
18-
<p className="leading text-sm text-body-medium">
19-
A wallet is used to send, receive, store, and display digital assets.
20-
It&apos;s a new way to log in, without needing to create new accounts
21-
and passwords on every website.
22-
</p>
23-
</div>
24-
<div className="flex flex-row justify-center gap-4">
25-
<ButtonLink href="/wallets/find-wallet" size="sm" variant="outline">
26-
Get a wallet
27-
</ButtonLink>
28-
<ButtonLink href="/wallets/" size="sm" variant="outline">
29-
Learn more
30-
</ButtonLink>
31-
</div>
32-
</div>
33-
)
34-
}
35-
3611
const WalletProviders = ({ children, locale }: WalletProvidersProps) => {
3712
return (
3813
<WagmiProvider config={rainbowkitConfig}>
3914
<RainbowKitProvider
4015
locale={locale as Locale}
4116
appInfo={{
4217
appName: "RainbowKit Demo",
43-
disclaimer: Disclaimer,
18+
learnMoreUrl: "/wallets",
4419
}}
45-
modalSize="compact"
4620
>
4721
{children}
4822
</RainbowKitProvider>

0 commit comments

Comments
 (0)