diff --git a/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.lazy.tsx b/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.lazy.tsx index 3d36dee..5b56699 100644 --- a/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.lazy.tsx +++ b/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.lazy.tsx @@ -1,8 +1,12 @@ -import React, { lazy, Suspense } from 'react'; +import React, { lazy, Suspense } from "react"; -const LazyCreateTokenFormComponent = lazy(() => import('./CreateTokenFormComponent')); +const LazyCreateTokenFormComponent = lazy( + () => import("./CreateTokenFormComponent"), +); -const CreateTokenFormComponent = (props: JSX.IntrinsicAttributes & { children?: React.ReactNode; }) => ( +const CreateTokenFormComponent = ( + props: JSX.IntrinsicAttributes & { children?: React.ReactNode }, +) => ( diff --git a/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.tsx b/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.tsx index b719223..dfd68fe 100644 --- a/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.tsx +++ b/packages/mui/src/components/CreateTokenFormComponent/CreateTokenFormComponent.tsx @@ -1,45 +1,149 @@ // import styles from "./CreateTokenFormComponent.module.css"; -import { Box, Button, TextField } from "@mui/material"; - +import { + // Box, + Button, + FormControl, + InputLabel, + MenuItem, + Select, + TextField, +} from "@mui/material"; +import { Controller, useForm } from "react-hook-form"; // interface CreateTokenFormComponentProps {} +interface FormValues { + name: string; + asset?: string; + hitPoints?: number; +} + const CreateTokenFormComponent = () => { + const { + control, + handleSubmit, + formState: { errors }, + } = useForm({ mode: "onBlur" }); + const onSubmit = (data: FormValues) => console.log(data); + console.log(`Errors: ${JSON.stringify(errors)}`); return ( - - - - - - - - +
+
+ ( + + )} + /> +
+
+ + Asset + ( + + )} + /> + +
+
+ ( + + )} + /> +
+ +
+ //
+ // + // + // + // + // + // + // + // + //
); }; diff --git a/packages/mui/src/components/TokenInfoDrawerComponent/TokenInfoDrawerComponent.tsx b/packages/mui/src/components/TokenInfoDrawerComponent/TokenInfoDrawerComponent.tsx index 9c7d771..7c88fdf 100644 --- a/packages/mui/src/components/TokenInfoDrawerComponent/TokenInfoDrawerComponent.tsx +++ b/packages/mui/src/components/TokenInfoDrawerComponent/TokenInfoDrawerComponent.tsx @@ -96,46 +96,6 @@ const TokenInfoDrawerComponent = () => { - {/* - - - - - - - */}