diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-21 12:26:29 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-21 12:26:29 -0600 |
commit | b5885b23a8d3593428334683b8c03075ce071f3a (patch) | |
tree | 8b2286f92496a814c861a8e3a359039030cbb73d /src/components/payment_method.tsx | |
parent | 44a016256717b871ada858d5dc064d9d0e06425e (diff) |
Añade edición de método de pago
Diffstat (limited to 'src/components/payment_method.tsx')
-rw-r--r-- | src/components/payment_method.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/payment_method.tsx b/src/components/payment_method.tsx index 66f7e54..f87d889 100644 --- a/src/components/payment_method.tsx +++ b/src/components/payment_method.tsx @@ -1,4 +1,6 @@ export default function PaymentMethod({ payment_method }) { + const edit_address_route = `/account/cards/${ payment_method.id }/edit`; + return( <tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700"> <th scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"> @@ -14,9 +16,10 @@ export default function PaymentMethod({ payment_method }) { {payment_method.attributes.expiration_year} </td> <td className="px-6 py-4"> - <button type="button" className="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800"> + <a type="button" className="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800" + href={edit_address_route}> Editar - </button> + </a> </td> </tr> ); |