Skip to content

Commit

Permalink
Use icon for transak activity
Browse files Browse the repository at this point in the history
  • Loading branch information
googolev committed Feb 9, 2024
1 parent 1700dad commit 47b1ffb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/blocks/OnRampIframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { useAccounts, useChainId, useRamp } from "app/hooks";
type RampOrder = { [key: string]: any };

const API_KEY = process.env.WIGWAM_ON_RAMP_API_KEY;
const SUSPENDED = true;
const SUSPENDED = false;

const saveRampActivity = (rampOrder: RampOrder) => {
const newRampActivity: RampActivity = {
Expand Down
12 changes: 10 additions & 2 deletions src/app/components/blocks/activity/ActivityAsset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { ReactComponent as BridgeIcon } from "app/icons/bridge.svg";
import { ReactComponent as SwapIconSmall } from "app/icons/activity-swap.svg";
import { ReactComponent as ApproveIcon } from "app/icons/approve.svg";
import { ReactComponent as ChatIcon } from "app/icons/communication.svg";
import { ReactComponent as ReceiveIcon } from "app/icons/Receive.svg";
import {
ReactComponent as LinkIcon,
ReactComponent as WalletExplorerIcon,
Expand Down Expand Up @@ -266,7 +267,7 @@ const ActivityAsset = memo(
{item.type === ActivityType.Ramp && (
<ActivityNetworkCard
chainId={item.chainId}
className="w-[9rem] mr-8"
className="w-[12rem] mr-8"
/>
)}

Expand Down Expand Up @@ -410,7 +411,14 @@ const ActivityIcon = memo<ActivityIconProps>(({ item, className }) => {
);
}

const Icon = item.source.kind === SelfActivityKind.Swap ? SwapIcon : SendIcon;
const isRampActivity = item.type === ActivityType.Ramp;

const Icon =
item.source.kind === SelfActivityKind.Swap
? SwapIcon
: isRampActivity
? ReceiveIcon
: SendIcon;

return (
<Icon
Expand Down

0 comments on commit 47b1ffb

Please sign in to comment.