summaryrefslogtreecommitdiff
path: root/src/routes/account/addresses/edit.tsx
blob: 65c7b9ae704df75c452bcfa22f45608c0944a679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import AddressForm from "../../../components/forms/address_form";
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 dirección
          </h1>
          <AddressForm address={address} errors={errors}/>
        </div>
    </MainContentLayout>
  );
}