-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add wagmi and start refactoring wallet select * feat: display eth wallets in wallet select and create basic multi wallet network selection arch * feat: add wallet select modal new layout type * feat: display evm wallets in a simpler list * feat: handle evm wallet connection * fix: build * improvement: mark old evm observable wallets as deprecated * fix: build
- Loading branch information
1 parent
f09deb3
commit a6e02a8
Showing
48 changed files
with
2,728 additions
and
1,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/web/components/wallet-states/connecting-wallet-state.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { isNil } from "@osmosis-labs/utils"; | ||
import React from "react"; | ||
|
||
interface ConnectingWalletStateProps { | ||
walletLogo?: string; | ||
title?: string; | ||
desc?: string; | ||
} | ||
|
||
const ConnectingWalletState = ({ | ||
walletLogo, | ||
title, | ||
desc, | ||
}: ConnectingWalletStateProps) => { | ||
return ( | ||
<div className="mx-auto flex h-full max-w-sm flex-col items-center justify-center gap-12 pt-3"> | ||
<div className="flex h-16 w-16 items-center justify-center after:absolute after:h-32 after:w-32 after:animate-spin-slow after:rounded-full after:border-2 after:border-b-transparent after:border-l-wosmongton-300 after:border-r-wosmongton-300 after:border-t-transparent"> | ||
{!!walletLogo && typeof walletLogo === "string" && ( | ||
<img width={64} height={64} src={walletLogo} alt="Wallet logo" /> | ||
)} | ||
</div> | ||
|
||
<div className="flex flex-col gap-2"> | ||
{!isNil(title) && ( | ||
<h1 className="text-center text-h6 font-h6">{title}</h1> | ||
)} | ||
{!isNil(desc) && ( | ||
<p className="body2 text-center text-wosmongton-100">{desc}</p> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ConnectingWalletState; |
41 changes: 41 additions & 0 deletions
41
packages/web/components/wallet-states/error-wallet-state.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { isNil } from "@osmosis-labs/utils"; | ||
import React, { ReactNode } from "react"; | ||
|
||
interface ErrorWalletStateProps { | ||
walletLogo?: string; | ||
title?: string; | ||
desc?: string; | ||
actions?: ReactNode; | ||
} | ||
|
||
const ErrorWalletState = ({ | ||
walletLogo, | ||
title, | ||
desc, | ||
actions, | ||
}: ErrorWalletStateProps) => { | ||
return ( | ||
<div className="mx-auto flex h-full max-w-sm flex-col items-center justify-center gap-12 pt-6"> | ||
<div className="flex h-16 w-16 items-center justify-center after:absolute after:h-32 after:w-32 after:rounded-full after:border-2 after:border-error"> | ||
{!!walletLogo && typeof walletLogo === "string" && ( | ||
<img width={64} height={64} src={walletLogo} alt="Wallet logo" /> | ||
)} | ||
</div> | ||
|
||
<div className="flex flex-col gap-6"> | ||
<div className="flex flex-col gap-2"> | ||
{!isNil(title) && ( | ||
<h1 className="text-center text-h6 font-h6">{title}</h1> | ||
)} | ||
{!isNil(desc) && ( | ||
<p className="body2 text-center text-wosmongton-100">{desc}</p> | ||
)} | ||
</div> | ||
|
||
{actions} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorWalletState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./connecting-wallet-state"; | ||
export * from "./error-wallet-state"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.