Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the impact of an expense on the active user's balance #139

Merged
merged 4 commits into from
Apr 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Put the balance on a different line
scastiel committed Apr 13, 2024
commit 95c8348db931e317e6ec3c25b24a63fbdd757688
7 changes: 1 addition & 6 deletions src/app/groups/[groupId]/expenses/active-user-balance.tsx
Original file line number Diff line number Diff line change
@@ -39,10 +39,5 @@ export function ActiveUserBalance({ groupId, currency, expense }: Props) {
</>
)
}
return (
<>
{' \u00b7 '}
{fmtBalance}
</>
)
return <div className="text-xs text-muted-foreground">{fmtBalance}</div>
}
2 changes: 2 additions & 0 deletions src/app/groups/[groupId]/expenses/expense-list.tsx
Original file line number Diff line number Diff line change
@@ -151,6 +151,8 @@ export function ExpenseList({
</strong>
</Fragment>
))}
</div>
<div className="text-xs text-muted-foreground">
<ActiveUserBalance {...{ groupId, currency, expense }} />
</div>
</div>