revite/src/pages/login/forms/FormCreate.tsx

14 lines
345 B
TypeScript
Raw Normal View History

2021-06-18 15:21:54 -04:00
import { RevoltClient } from "../../../context/revoltjs/RevoltClient";
import { Form } from "./Form";
export function FormCreate() {
return (
<Form
page="create"
callback={async data => {
await RevoltClient.register(process.env.API_SERVER as string, data);
}}
/>
);
}