Skip to content

Commit

Permalink
display transaction.code
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Dec 15, 2024
1 parent 1b864aa commit 9707de8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ function Transactions({year}:{year: number}) {
<Th className="text-left">
description
</Th>
{!edit && <Th className="tex-left">
card
</Th>}
</tr>
</Thead>
<tbody>
Expand Down Expand Up @@ -152,6 +155,7 @@ function TransactionRow({transaction, edit}:{
<Td>{transaction && !editing ?originalDescription
:<input type="text" placeholder="description" value={newDescription} onChange={e => setDescription(e.target.value)} />}
</Td>
{!edit && <Td>{transaction?.code}</Td> }
{edit &&
<Td>{modified &&
<button className="text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dm-coffee",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 9707de8

Please sign in to comment.