-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update logic of the icons generation * fix: code style and remove test release workflow * feat: added statics icons and fix dynamics * fix: cleanup * fix: added zkSync and celo chains icons (without mono versions)
- Loading branch information
Showing
2,200 changed files
with
9,081 additions
and
50,753 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
"use client"; | ||
|
||
import { AssetIcon as AI } from "@bgd-labs/react-web3-icons"; | ||
import { | ||
AssetIconProps, | ||
ExternalComponentBaseProps, | ||
} from "@bgd-labs/react-web3-icons/dist/utils"; | ||
|
||
import { cn } from "@/utils/cn"; | ||
|
||
/** | ||
* Renders an asset icon specified by symbol. | ||
*/ | ||
export const AssetIcon = ({ | ||
symbol, | ||
className, | ||
...props | ||
}: AssetIconProps & ExternalComponentBaseProps) => { | ||
return ( | ||
<AI | ||
symbol={symbol} | ||
className={cn("size-[70px]", className)} | ||
loader={ | ||
<div | ||
className={cn( | ||
"size-[70px] animate-pulse rounded-full bg-brand-300", | ||
className, | ||
)} | ||
/> | ||
} | ||
{...props} | ||
/> | ||
); | ||
}; |
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,30 @@ | ||
"use client"; | ||
|
||
import { StaticChainIcon as CI } from "@bgd-labs/react-web3-icons"; | ||
import { ExternalComponentBaseProps } from "@bgd-labs/react-web3-icons/dist/utils"; | ||
|
||
import { cn } from "@/utils/cn"; | ||
|
||
interface ChainIconProps extends ExternalComponentBaseProps { | ||
chainId: number; | ||
} | ||
/** | ||
* Renders a chain icon specified by chainId. | ||
*/ | ||
export const ChainIcon = ({ chainId, className, ...props }: ChainIconProps) => { | ||
return ( | ||
<CI | ||
chainId={chainId} | ||
className={cn("size-[70px]", className)} | ||
loader={ | ||
<div | ||
className={cn( | ||
"size-[70px] animate-pulse rounded-full bg-brand-300", | ||
className, | ||
)} | ||
/> | ||
} | ||
{...props} | ||
/> | ||
); | ||
}; |
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,34 @@ | ||
"use client"; | ||
|
||
import { WalletIcon as WI } from "@bgd-labs/react-web3-icons"; | ||
import { ExternalComponentBaseProps } from "@bgd-labs/react-web3-icons/dist/utils/index"; | ||
|
||
import { cn } from "@/utils/cn"; | ||
|
||
interface WalletIconProps extends ExternalComponentBaseProps { | ||
walletName: string; | ||
} | ||
/** | ||
* Renders a wallet icon specified by walletName. | ||
*/ | ||
export const WalletIcon = ({ | ||
walletName, | ||
className, | ||
...props | ||
}: WalletIconProps) => { | ||
return ( | ||
<WI | ||
walletName={walletName} | ||
className={cn("size-[70px]", className)} | ||
loader={ | ||
<div | ||
className={cn( | ||
"size-[70px] animate-pulse rounded-full bg-brand-300", | ||
className, | ||
)} | ||
/> | ||
} | ||
{...props} | ||
/> | ||
); | ||
}; |
Oops, something went wrong.