Skip to content

Commit

Permalink
Show balance on large screens only.
Browse files Browse the repository at this point in the history
  • Loading branch information
robol committed Dec 3, 2024
1 parent 150b678 commit 6891fb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Balance() {
if (loading) return <Loading />
if (error) return <Error error={error}/>
return <div>
<p>Bilancio: <Amount prefix="€" cents={data.balance.cents}/> (<b>{data.balance.count}</b> caffè)</p>
<p>Bilancio complessivo: <Amount prefix="€" cents={data.balance.cents}/> (<b>{data.balance.count}</b> caffè)</p>
</div>
}

6 changes: 4 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ export default function Home() {
function Dashboard() {
return <main>
<CoffeeForm />
<Credit />
<Balance />
<div className='flex justify-between'>
<Credit />
<div className="hidden sm:block"><Balance /></div>
</div>
<Transactions />
</main>
}
Expand Down

0 comments on commit 6891fb1

Please sign in to comment.