Skip to content

Commit

Permalink
[uma-bridge] enforce lnurlpresponse min/max on sending UI (#14525)
Browse files Browse the repository at this point in the history
https://github.com/user-attachments/assets/c392c186-d818-4533-8518-3d2020069620

---------

Co-authored-by: Corey Martin <[email protected]>
GitOrigin-RevId: 271befae14d253186a888e4adc99c925b916d7db
  • Loading branch information
2 people authored and Lightspark Eng committed Dec 21, 2024
1 parent e60ad7c commit 75202fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/components/CurrencyAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type CurrencyAmountProps = {
fullPrecision?: boolean | undefined;
typography?: PartialSimpleTypographyProps;
unitsPerBtc?: number;
showCurrencyIcon?: boolean;
};

export function CurrencyAmount({
Expand All @@ -42,6 +43,7 @@ export function CurrencyAmount({
ml = 0,
typography,
unitsPerBtc,
showCurrencyIcon = true,
}: CurrencyAmountProps) {
let displayUnit: CurrencyUnitType;
let amountMap: CurrencyMap;
Expand Down Expand Up @@ -100,7 +102,7 @@ export function CurrencyAmount({
return (
<StyledCurrencyAmount ml={ml} id={id}>
{includeEstimatedIndicator && "Est. "}
<CurrencyIcon unit={displayUnit} />
{showCurrencyIcon ? <CurrencyIcon unit={displayUnit} /> : null}
{content}
</StyledCurrencyAmount>
);
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/styles/colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const baseColors = {
purple43: "#820AD1",
purple55: "#8B38DE",
// red
red50: "#E31A1A",
red42a10: "#D800271A",
red42a20: "#D800272D",
red42a30: "#D800273F",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/styles/themes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ const bridgeLightTheme = extend(lightTheme, {
text: colors.grayBlue9,
secondary: colors.grayBlue43,
inputBackground: colors.white,
danger: colors.red50,
});

const bridgeDarkTheme = extend(darkTheme, {
Expand Down

0 comments on commit 75202fb

Please sign in to comment.