diff --git a/components/Sats.tsx b/components/Sats.tsx deleted file mode 100644 index 97b5f7b89..000000000 --- a/components/Sats.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import * as React from 'react'; -import { View } from 'react-native'; -import { Body } from '../components/text/Body'; -import { Row } from '../components/layout/Row'; -import { Spacer } from '../components/layout/Spacer'; - -// TODO: will replace this with a more generic "Value" component -export function Sats({ sats }: { sats: number }) { - const numberWithCommas = (x: string | number = 0) => - x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); - - return ( - - {numberWithCommas(sats)} - - - - sats - - - - ); -} diff --git a/views/Routing/RoutingHeader.tsx b/views/Routing/RoutingHeader.tsx index 1cfecd0e8..7b1cc6542 100644 --- a/views/Routing/RoutingHeader.tsx +++ b/views/Routing/RoutingHeader.tsx @@ -8,7 +8,6 @@ import { themeColor } from '../../utils/ThemeUtils'; import { Body } from '../../components/text/Body'; import { Row } from '../../components/layout/Row'; import { Spacer } from '../../components/layout/Spacer'; -import { Sats } from '../../components/Sats'; import Amount from '../../components/Amount'; function TotalRow({ @@ -34,7 +33,7 @@ function TotalRow({ {kind} - + ); }