summaryrefslogtreecommitdiff
path: root/src/routes/account/edit.tsx
blob: a78d8a70bfde91e5cd30e7ae618c3251bcf0e3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import MainContentLayout from "../../components/main_content_layout";
import AccountForm from "../../components/forms/account_form";
import Token from "../../lib/token";
import { useLoaderData } from "react-router-dom";
import "../../components/stylesheets/shared.css";

export function EditAccount() {
  const account = useLoaderData()[0].data.data.attributes;

  return(
    <>
      <MainContentLayout>
        <div className="w-4/5 my-6">
          <h1 className="my-6 text-3xl">
            Editar cuenta
          </h1>
          <AccountForm account={account}/>
        </div>
      </MainContentLayout>
    </>
  );
}