@@ -3,18 +3,18 @@ import { motion } from 'framer-motion';
33import PerfectScrollbar from 'react-perfect-scrollbar' ;
44import { Spinner , Card , Row , Col , ListGroup , Alert , ProgressBar , OverlayTrigger , Tooltip } from 'react-bootstrap' ;
55
6- import { formatCurrency , titleCase } from '../../../utilities/data-formatters' ;
6+ import { titleCase } from '../../../utilities/data-formatters' ;
77import { ActionSVG } from '../../../svgs/Action' ;
8- import { STAGERRED_SPRING_VARIANTS_3 , Units } from '../../../utilities/constants' ;
8+ import { STAGERRED_SPRING_VARIANTS_3 } from '../../../utilities/constants' ;
99import { NoChannelLightSVG } from '../../../svgs/NoChannelLight' ;
1010import { NoChannelDarkSVG } from '../../../svgs/NoChannelDark' ;
1111import { useSelector } from 'react-redux' ;
12- import { selectIsAuthenticated , selectIsDarkMode , selectListChannels , selectUIConfigUnit } from '../../../store/rootSelectors' ;
12+ import { selectIsAuthenticated , selectIsDarkMode , selectListChannels } from '../../../store/rootSelectors' ;
13+ import CurrencyBox from '../../shared/CurrencyBox/CurrencyBox' ;
1314
1415const Channels = ( props ) => {
1516 const isDarkMode = useSelector ( selectIsDarkMode ) ;
1617 const isAuthenticated = useSelector ( selectIsAuthenticated ) ;
17- const uiConfigUnit = useSelector ( selectUIConfigUnit ) ;
1818 const listChannels = useSelector ( selectListChannels ) ;
1919
2020 return (
@@ -59,10 +59,10 @@ const Channels = (props) => {
5959 </ ProgressBar >
6060 < Row className = 'text-light d-flex align-items-end justify-content-between' >
6161 < Col xs = { 6 } className = 'fs-7 fw-bold d-flex justify-content-start text-primary' >
62- { formatCurrency ( channel . to_us_sat , Units . SATS , uiConfigUnit , false , 5 , 'string' ) } { uiConfigUnit }
62+ < CurrencyBox value = { channel . to_us_sat } shorten = { false } rootClasses = 'd-inline-flex flex-row' currencyClasses = 'fs-7' unitClasses = 'ms-1 fs-7' > </ CurrencyBox >
6363 </ Col >
6464 < Col xs = { 6 } className = 'fs-7 fw-bold d-flex justify-content-end' >
65- { formatCurrency ( channel . to_them_sat , Units . SATS , uiConfigUnit , false , 5 , 'string' ) } { uiConfigUnit }
65+ < CurrencyBox value = { channel . to_them_sat } shorten = { false } rootClasses = 'd-inline-flex flex-row' currencyClasses = 'fs-7' unitClasses = 'ms-1 fs-7' > </ CurrencyBox >
6666 </ Col >
6767 </ Row >
6868 </ >
0 commit comments