From 385606ee05a8ceb9073169639eb1a311f81cac10 Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Thu, 11 May 2023 19:28:47 -0600
Subject: Añade información a la vista de usuario
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/payment_method.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/components/payment_method.tsx

(limited to 'src/components/payment_method.tsx')

diff --git a/src/components/payment_method.tsx b/src/components/payment_method.tsx
new file mode 100644
index 0000000..66f7e54
--- /dev/null
+++ b/src/components/payment_method.tsx
@@ -0,0 +1,23 @@
+export default function PaymentMethod({ payment_method }) {
+  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">
+        {payment_method.attributes.number}
+      </th>
+      <td className="px-6 py-4">
+        {payment_method.attributes.expiration_day}
+      </td>
+      <td className="px-6 py-4">
+        {payment_method.attributes.expiration_month}
+      </td>
+      <td className="px-6 py-4">
+        {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">
+        Editar
+      </button>
+      </td>
+    </tr>
+  );
+}
\ No newline at end of file
-- 
cgit v1.2.3

