From cbebedd51e1b4a2f709341b792dd073bac83f15d Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 12 May 2023 23:01:55 -0600 Subject: Añadido formulario de edición de cuenta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/account/account.tsx | 2 +- src/routes/account/edit.tsx | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/routes/account/edit.tsx (limited to 'src/routes') diff --git a/src/routes/account/account.tsx b/src/routes/account/account.tsx index 8458285..8a04427 100644 --- a/src/routes/account/account.tsx +++ b/src/routes/account/account.tsx @@ -29,7 +29,7 @@ export default function Account() { Correo electrónico: {email}
- + Editar
diff --git a/src/routes/account/edit.tsx b/src/routes/account/edit.tsx new file mode 100644 index 0000000..c2dfcb5 --- /dev/null +++ b/src/routes/account/edit.tsx @@ -0,0 +1,40 @@ +import MainContentLayout from "../../components/main_content_layout"; +import Token from "../../lib/token"; +import { Form, 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( + <> + +
+

+ Editar cuenta +

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+ + ); +} \ No newline at end of file -- cgit v1.2.3