summaryrefslogtreecommitdiff
path: root/src/routes/account/addresses/edit.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/account/addresses/edit.tsx')
-rw-r--r--src/routes/account/addresses/edit.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/account/addresses/edit.tsx b/src/routes/account/addresses/edit.tsx
index 31bfaed..65c7b9a 100644
--- a/src/routes/account/addresses/edit.tsx
+++ b/src/routes/account/addresses/edit.tsx
@@ -1,17 +1,18 @@
import AddressForm from "../../../components/forms/address_form";
-import { useLoaderData } from "react-router-dom";
+import { useLoaderData, useActionData } from "react-router-dom";
import MainContentLayout from "../../../components/main_content_layout";
export function Edit() {
const address = useLoaderData().data.data.attributes;
+ const errors = useActionData();
return(
<MainContentLayout>
<div className="w-4/5 my-6">
<h1 className="my-6 text-3xl">
- Editar cuenta
+ Editar dirección
</h1>
- <AddressForm address={address}/>
+ <AddressForm address={address} errors={errors}/>
</div>
</MainContentLayout>
);