Skip to content

Commit

Permalink
fix: order of cards with assets
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Sep 19, 2024
1 parent c31a617 commit a028ea0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type AssetItemProps = HStackProps & {
assetId: string;
prefix?: string;
isLoading?: boolean;
reversed?: boolean;
txIconTypeFallback?: TxIconType;
};

Expand All @@ -33,7 +32,6 @@ export function AssetItem({
children,
isLoading,
txIconTypeFallback,
reversed,
...props
}: AssetItemProps) {
const asset = useAsset(assetId);
Expand All @@ -58,16 +56,13 @@ export function AssetItem({
)
}
/>
<Box
data-reversed={reversed || !asset?.symbol}
className="flex flex-col [&[data-reversed=true]]:flex-col-reverse"
>
<Box className="flex flex-col">
<LoadingWrapper
isLoading={isLoading}
loadingEl={<LoadingBox className="w-40 h-6" />}
regularEl={
<HStack gap="2">
{prefix && <Text className="font-medium">{prefix} s</Text>}
{prefix && <Text className="font-medium">{prefix}</Text>}
{asset?.symbol ? (
<Tooltip content={assetId}>
<Copyable value={assetId}>
Expand Down

0 comments on commit a028ea0

Please sign in to comment.