feat: consume money projected event amounts

This commit is contained in:
2026-08-25 22:30:08 +03:00
parent d10e1dd182
commit 1fd9a3a861
7 changed files with 25 additions and 29 deletions
+1 -2
View File
@@ -119,8 +119,7 @@ function mockLoadedAccountPage() {
instrumentUid: null,
ticker: `BND${index}`,
displayName: `Купон ${index}`,
currency: "RUB",
amount: String(index + 1),
projectedAmount: { currency: "RUB", value: String(index + 1) },
})),
}),
),
@@ -54,8 +54,8 @@ const RecentEvent: FC<RecentEventProps> = (props) => {
<Paper className={classes.cash} withBorder>
<Text>{`${t(`events.type.${event.type}`)} · ${event.displayName}`}</Text>
<Text fw={700}>
{event.amount && event.currency
? formatMoney({ currency: event.currency, value: event.amount })
{event.projectedAmount
? formatMoney(event.projectedAmount)
: t("events.noAmount")}
</Text>
</Paper>