Skip to content

Commit

Permalink
[us2mx][LIG-7118] transaction details frontend. support page to come.…
Browse files Browse the repository at this point in the history
… (#14270)

GitOrigin-RevId: 1006c392377ab10921bbc199468a6544a91329db
  • Loading branch information
ch-brian authored and Lightspark Eng committed Dec 12, 2024
1 parent 50c55d4 commit 087a2b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ui/src/components/IconWithCircleBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type IconWithCircleBackgroundProps = {
iconWidth?: IconWidth | undefined;
to?: NewRoutesType | undefined;
darkBg?: boolean;
noBg?: boolean;
shouldRotate?: boolean;
onClick?: () => void;
};
Expand All @@ -24,13 +25,15 @@ export function IconWithCircleBackground({
onClick,
darkBg = false,
shouldRotate = false,
noBg = false,
}: IconWithCircleBackgroundProps) {
const content = (
<Flex center onClick={onClick}>
<StyledIconWithCircleBackground
size={iconWidth}
darkBg={darkBg}
shouldRotate={shouldRotate}
noBg={noBg}
>
<Icon
name={iconName}
Expand All @@ -47,12 +50,15 @@ type StyledIconWithCircleBackgroundProps = {
size: IconWidth;
darkBg: boolean;
shouldRotate: boolean;
noBg: boolean;
};

const StyledIconWithCircleBackground = styled.div<StyledIconWithCircleBackgroundProps>`
background: ${({ theme, darkBg }) =>
background: ${({ theme, darkBg, noBg }) =>
darkBg
? `linear-gradient(291.4deg, #1C243F 0%, #21283A 100%)`
: noBg
? "transparent"
: getColor(theme, "grayBlue94")};
border-radius: 50%;
padding: ${({ size }) => getPadding(size)}px;
Expand Down

0 comments on commit 087a2b6

Please sign in to comment.