diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-21 12:26:29 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-21 12:26:29 -0600 |
commit | b5885b23a8d3593428334683b8c03075ce071f3a (patch) | |
tree | 8b2286f92496a814c861a8e3a359039030cbb73d /src/routes/account/cards | |
parent | 44a016256717b871ada858d5dc064d9d0e06425e (diff) |
Añade edición de método de pago
Diffstat (limited to 'src/routes/account/cards')
-rw-r--r-- | src/routes/account/cards/edit.tsx | 19 |
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 |