From 385606ee05a8ceb9073169639eb1a311f81cac10 Mon Sep 17 00:00:00 2001 From: HombreLaser 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/routes/account/account.tsx | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'src/routes') diff --git a/src/routes/account/account.tsx b/src/routes/account/account.tsx index baca1a5..8458285 100644 --- a/src/routes/account/account.tsx +++ b/src/routes/account/account.tsx @@ -1,13 +1,42 @@ import { useLoaderData } from "react-router-dom"; +import { PersonCircle } from "react-bootstrap-icons"; +import AddressesTable from "../../components/addresses_table"; +import PaymentMethodsTable from "../../components/payment_methods_table"; import MainContentLayout from "../../components/main_content_layout"; +import "../../components/stylesheets/shared.css"; export default function Account() { + const response = useLoaderData(); + const full_name = response[0].data.data.attributes.first_name + ' ' + response[0].data.data.attributes.last_name + const email = response[0].data.data.attributes.email + const addresses = response[1].data.data; + const payment_methods = response[2].data.data; + return( <> -

- Cuenta -

+
+
+ +
+
+
+

+ {full_name} +

+
+
+ Correo electrónico: {email} +
+
+ + Editar + +
+
+
+ +
); -- cgit v1.2.3