Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,511 changes: 3,256 additions & 3,255 deletions dist/cspr-design.es.js

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions dist/cspr-design.umd.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ interface ActivityFeedItemProps {
getAccountInfo: (publicKey: string) => AccountInfoResult | null | undefined;
getContractInfoByHash?: (contractHash: string) => ContractResult | null | undefined;
getContractPackageInfoByHash?: (contractPackageHash: string) => DeployContractPackageResult | null | undefined;
logoSize?: 'default' | 'big' | 'average' | 'medium' | 'small' | 'tiny';
}
export declare const ActivityFeedItem: ({ deploy, loading, actionIdentificationHashes, getAccountInfo, getContractPackageInfoByHash, getContractInfoByHash, csprLiveDomainPath, }: ActivityFeedItemProps) => import("react/jsx-runtime").JSX.Element;
export declare const ActivityFeedItem: ({ deploy, loading, actionIdentificationHashes, getAccountInfo, getContractPackageInfoByHash, getContractInfoByHash, csprLiveDomainPath, logoSize, }: ActivityFeedItemProps) => import("react/jsx-runtime").JSX.Element;
export default ActivityFeedItem;
//# sourceMappingURL=activity-feed-item.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/lib/components/activity-feed-item/activity-feed-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ interface ActivityFeedItemProps {
getContractPackageInfoByHash?: (
contractPackageHash: string,
) => DeployContractPackageResult | null | undefined;
logoSize?: 'default' | 'big' | 'average' | 'medium' | 'small' | 'tiny';
}

export const ActivityFeedItem = ({
Expand All @@ -169,6 +170,7 @@ export const ActivityFeedItem = ({
getContractPackageInfoByHash,
getContractInfoByHash,
csprLiveDomainPath,
logoSize,
}: ActivityFeedItemProps) => {
const {
callerPublicKey,
Expand Down Expand Up @@ -276,9 +278,9 @@ export const ActivityFeedItem = ({

<FlexRow itemsSpacing={12}>
{logo ? (
<Avatar src={logo} loading={loading} alt={'Account logo'} />
<Avatar size={logoSize} src={logo} loading={loading} alt={'Account logo'} />
) : (
<Avatar hash={callerPublicKey || callerHash} loading={loading} />
<Avatar size={logoSize} hash={callerPublicKey || callerHash} loading={loading} />
)}
<StyledFlexColumn itemsSpacing={12}>
<FlexRow justify={'space-between'}>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/address/address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const Address = React.forwardRef<Ref, AddressProps>(function Address(
tooltipCaption,
hashFontSize,
nameTruncateSize = 5,
avatarSize = 'default',
avatarSize,
horizonalAlign = 'center',
itemsSpacing = 12,
} = props;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/avatar/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const Avatar = React.forwardRef<Ref, AvatarProps>(function Avatar(
loading,
hash,
src,
size = 'default',
size,
transparentBg = false,
...restProps
} = props;
Expand Down
Loading