summaryrefslogtreecommitdiff
path: root/src/routes/account/addresses/create.tsx
blob: 5e33a2a5457e7eaa1f58cfb1b4f3f320d56ba62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { useActionData } from "react-router-dom";
import AddressForm from "../../../components/forms/address_form";
import MainContentLayout from "../../../components/main_content_layout";

export function Create() {
  const errors = useActionData();

  return (
    <MainContentLayout>
      <div className="w-4/5 my-6">
        <h1 className="my-6 text-3xl">
          Nueva dirección
        </h1>
        <AddressForm errors={errors}/>
      </div>
    </MainContentLayout>
  );
}