Skip to content

Commit

Permalink
Merge pull request #53 from Robert-M-Lucas/dev-add-modal-text
Browse files Browse the repository at this point in the history
Added text to transaction modal to improve usability
  • Loading branch information
Robert-M-Lucas authored May 1, 2024
2 parents 1fed54c + 77793b0 commit c1980ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions/InputTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function InputTransaction({ show, closeModal }: { show: boolean, closeMod
<Modal.Body>
<Form>
<Form.Control type="name" placeholder="Enter name" value={name} onChange={(e) => setName(e.target.value)} />
<Form.Control type="name" placeholder="Enter amount" value={amount} onChange={(e) => setAmount(e.target.value)} />
<Form.Control type="name" placeholder="Enter amount (use '-' for expenses, do not include currency)" value={amount} onChange={(e) => setAmount(e.target.value)} />
<Form.Select onChange={(e) => setCategory(e.target.value)}>
{Object.entries(emojis).map(([category, emoji], i) => <option value={category} key={i}>{emoji} {category}</option>)}
</Form.Select>
Expand All @@ -83,7 +83,7 @@ export function InputTransaction({ show, closeModal }: { show: boolean, closeMod

<Form.Control as="textarea" rows={3} placeholder="Enter Description (optional)" onChange={(e) => setDescription(e.target.value)} />
<Form.Control as="textarea" rows={3} placeholder="Enter Notes (optional)" onChange={(e) => setNotes(e.target.value)} />
<Form.Control as="textarea" rows={3} placeholder="Enter Address (optional)"onChange={(e) => setAddress(e.target.value)} />
<Form.Control as="textarea" rows={3} placeholder="Enter Address (optional)" onChange={(e) => setAddress(e.target.value)} />
</Form>

{successMsg && <Alert variant="success">{successMsg}</Alert>}
Expand Down

0 comments on commit c1980ac

Please sign in to comment.