diff --git a/apps/miniapp/src/routes/home.tsx b/apps/miniapp/src/routes/home.tsx index 26ffed1..dd1140b 100644 --- a/apps/miniapp/src/routes/home.tsx +++ b/apps/miniapp/src/routes/home.tsx @@ -13,7 +13,7 @@ import { Input } from '../components/ui/input' import { Modal } from '../components/ui/dialog' import { Toast } from '../components/ui/toast' import { Skeleton } from '../components/ui/skeleton' -import { memberRemainingClass, ledgerPrimaryAmount } from '../lib/ledger-helpers' +import { ledgerPrimaryAmount } from '../lib/ledger-helpers' import { majorStringToMinor, minorToMajorString } from '../lib/money' import { compareTodayToPeriodDay, @@ -34,8 +34,6 @@ export default function HomeRoute() { currentMemberLine, utilityLedger, utilityTotalMajor, - purchaseLedger, - purchaseTotalMajor, testingPeriodOverride, testingTodayOverride } = useDashboard() @@ -733,100 +731,6 @@ export default function HomeRoute() { }} - {/* Your balance card */} - - {(member) => ( - <> - - {(() => { - const subtotalMinor = - majorStringToMinor(member().rentShareMajor) + - majorStringToMinor(member().utilityShareMajor) - const subtotalMajor = minorToMajorString(subtotalMinor) - - return ( - -
-
- {copy().yourBalanceTitle} - - {(badge) => ( - {badge().label} - )} - -
-
-
- {copy().shareRent} - - {member().rentShareMajor} {data().currency} - -
-
- {copy().shareUtilities} - - {member().utilityShareMajor} {data().currency} - -
-
- {copy().totalDueLabel} - - {subtotalMajor} {data().currency} - -
-
- {copy().balanceAdjustmentLabel} - - {member().purchaseOffsetMajor} {data().currency} - -
-
- {copy().remainingLabel} - - {member().remainingMajor} {data().currency} - -
-
-
-
- ) - })()} -
- - - -
-
- {copy().homePurchasesTitle} -
-
-
- {copy().homePurchasesOffsetLabel} - - {member().purchaseOffsetMajor} {data().currency} - -
-
- - {copy().homePurchasesTotalLabel.replace( - '{count}', - String(purchaseLedger().length) - )} - - - {purchaseTotalMajor()} {data().currency} - -
-
-
-
-
- - )} -
- {/* Rent FX card */}