From d138c15dcd4272cd2358d28867ef35d1550b39cd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 15 May 2023 20:35:39 -0600 Subject: Mejora renderizado de formularios --- src/routes/account/addresses/edit.tsx | 18 ++++++++++++++++++ src/routes/account/edit.tsx | 24 +++--------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 src/routes/account/addresses/edit.tsx (limited to 'src/routes/account') diff --git a/src/routes/account/addresses/edit.tsx b/src/routes/account/addresses/edit.tsx new file mode 100644 index 0000000..31bfaed --- /dev/null +++ b/src/routes/account/addresses/edit.tsx @@ -0,0 +1,18 @@ +import AddressForm from "../../../components/forms/address_form"; +import { useLoaderData } from "react-router-dom"; +import MainContentLayout from "../../../components/main_content_layout"; + +export function Edit() { + const address = useLoaderData().data.data.attributes; + + return( + +
+

+ Editar cuenta +

+ +
+
+ ); +} \ No newline at end of file diff --git a/src/routes/account/edit.tsx b/src/routes/account/edit.tsx index c2dfcb5..a78d8a7 100644 --- a/src/routes/account/edit.tsx +++ b/src/routes/account/edit.tsx @@ -1,11 +1,11 @@ import MainContentLayout from "../../components/main_content_layout"; +import AccountForm from "../../components/forms/account_form"; import Token from "../../lib/token"; -import { Form, useLoaderData } from "react-router-dom"; +import { useLoaderData } from "react-router-dom"; import "../../components/stylesheets/shared.css"; export function EditAccount() { const account = useLoaderData()[0].data.data.attributes; - const token = new Token(); return( <> @@ -14,25 +14,7 @@ export function EditAccount() {

Editar cuenta

-
-
- - -
-
- - -
-
- - -
-
- - -
- -
+ -- cgit v1.2.3