summaryrefslogtreecommitdiff
path: root/src/routes/account
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/account')
-rw-r--r--src/routes/account/cards/edit.tsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/routes/account/cards/edit.tsx b/src/routes/account/cards/edit.tsx
new file mode 100644
index 0000000..de055ba
--- /dev/null
+++ b/src/routes/account/cards/edit.tsx
@@ -0,0 +1,19 @@
+import CardForm from "../../../components/forms/card_form";
+import { useLoaderData, useActionData } from "react-router-dom";
+import MainContentLayout from "../../../components/main_content_layout";
+
+export function Edit() {
+ const card = useLoaderData().data.data.attributes;
+ const errors = useActionData();
+
+ return(
+ <MainContentLayout>
+ <div className="w-4/5 my-6">
+ <h1 className="my-6 text-3xl">
+ Editar método de pago
+ </h1>
+ <CardForm card={card} errors={errors}/>
+ </div>
+ </MainContentLayout>
+ );
+} \ No newline at end of file