Skip to content

Commit

Permalink
fix font size and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
sar-mko committed Sep 25, 2024
1 parent b81c9f9 commit bf0762d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,27 @@ export function ListItem({ item }) {
onChange={handleChange}
disabled={checked}
/>
<h2>{name}</h2>
<h2 style={{ fontSize: '20px' }}>{name}</h2>

<button onClick={handleDelete}>Delete</button>
<button onClick={() => setIsActive(!isActive)}>
View Purchase Details
</button>

<div style={{ display: isActive ? 'block' : 'none' }}>
<ul>
<ul style={{ fontSize: '15px' }}>
<li>
Last Purchase:
{dateLastPurchased
? dateLastPurchased.toDate().toDateString()
: 'N/A'}
<span>
{' '}
{dateLastPurchased
? dateLastPurchased.toDate().toDateString()
: 'N/A'}
</span>
</li>
<li>
Next Purchase:
{dateNextPurchased?.toDate().toDateString()}
<span> {dateNextPurchased?.toDate().toDateString()}</span>
</li>
<li>Total Purchases: {totalPurchases}</li>
</ul>
Expand Down

0 comments on commit bf0762d

Please sign in to comment.