Skip to content

Commit

Permalink
feat: fw-2889 add more red packet claim requirements (#3407)
Browse files Browse the repository at this point in the history
* feat: fw-2889 add more red packet claim requirements

* fixup! feat: fw-2889 add more red packet claim requirements

* feat: select club

* fixup! feat: select club

* fixup! feat: fw-2889 add more red packet claim requirements

* fix: verify and claim

* fix: follow up reviews

* chore: code maintenance [bot]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
swkatmask and github-actions[bot] authored Jan 20, 2025
1 parent 5b96713 commit 9a7e553
Show file tree
Hide file tree
Showing 33 changed files with 1,404 additions and 374 deletions.
1 change: 1 addition & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ html {
box-sizing: border-box !important;
-webkit-text-size-adjust: 100% !important;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
scrollbar-gutter: stable;
}

body {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/eth-linear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/nft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions src/components/NFTDetail/ChainIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import { isValidChainId as isValidSolanaChainId } from '@masknet/web3-shared-sol
import type { HTMLProps } from 'react';

import { Image } from '@/components/Image.js';
import { NetworkPluginID } from '@/constants/enum.js';
import { NetworkPluginID, NetworkType } from '@/constants/enum.js';
import { getNetworkDescriptor } from '@/helpers/getNetworkDescriptor.js';

interface ChainIconProps extends HTMLProps<HTMLImageElement> {
networkType?: NetworkType;
chainId: number;
size?: number;
}

export function ChainIcon(props: ChainIconProps) {
const { chainId, size = 22, className } = props;

const networkDescriptor = isValidSolanaChainId(chainId)
? getNetworkDescriptor(NetworkPluginID.PLUGIN_SOLANA, chainId)
: getNetworkDescriptor(NetworkPluginID.PLUGIN_EVM, chainId);
export function ChainIcon({ chainId, size = 22, className, networkType }: ChainIconProps) {
const networkDescriptor =
isValidSolanaChainId(chainId) || networkType === NetworkType.Solana
? getNetworkDescriptor(NetworkPluginID.PLUGIN_SOLANA, chainId)
: getNetworkDescriptor(NetworkPluginID.PLUGIN_EVM, chainId);

return (
<Image
Expand All @@ -28,7 +28,7 @@ export function ChainIcon(props: ChainIconProps) {
width: `${size}px`,
height: `${size}px`,
}}
alt={`Blockchain: ${props.chainId}`}
alt={`Blockchain: ${chainId}`}
className={className}
/>
);
Expand Down
Loading

0 comments on commit 9a7e553

Please sign in to comment.