diff --git a/src/components/Fees.jsx b/src/components/Fees.jsx index bb73d8a3..49e61819 100644 --- a/src/components/Fees.jsx +++ b/src/components/Fees.jsx @@ -2,7 +2,7 @@ import { Show, createEffect } from "solid-js"; import btcSvg from "../assets/btc.svg"; import satSvg from "../assets/sat.svg"; -import { fetchPairs, isMobile } from "../helper"; +import { fetchPairs } from "../helper"; import t from "../i18n"; import { asset, @@ -22,7 +22,7 @@ import { calculateBoltzFeeOnSend, calculateSendAmount, } from "../utils/calculate"; -import { formatAmount } from "../utils/denomination"; +import { denominations, formatAmount } from "../utils/denomination"; const Fees = () => { createEffect(() => { @@ -49,23 +49,26 @@ const Fees = () => { } }); + const toggleDenomination = () => { + setDenomination( + denomination() === denominations.btc + ? denominations.sat + : denominations.btc, + ); + }; + fetchPairs(); return (