blob: e9ac639220339f5028da94c67869d8cd123a4ebf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
import PaymentMethod from "./payment_method";
import "./stylesheets/shared.css";
export default function PaymentMethodsTable({ payment_methods }) {
const digested_payment_methods = payment_methods.map(payment_method =>
<PaymentMethod payment_method={payment_method}/>
);
return(
<div className="my-2 w-4/5 relative overflow-x-auto">
<h1 className="text-2xl my-2">
Métodos de pago
</h1>
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead className="bg-blue-arma text-xs text-white uppercase dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" className="px-6 py-3">
Número
</th>
<th scope="col" className="px-6 py-3">
Día de expiración
</th>
<th scope="col" className="px-6 py-3">
Mes de expiración
</th>
<th scope="col" className="px-6 py-3">
Año de expiración
</th>
<th scope="col" className="px-6 py-3">
Editar
</th>
</tr>
</thead>
<tbody>
{digested_payment_methods}
</tbody>
</table>
</div>
);
}
|