mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-12 18:29:57 -05:00
ec97dbebd0
Use idb for saving data. Allow logins.
16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
import { AppContext } from "../../../context/revoltjs/RevoltClient";
|
|
import { useContext } from "preact/hooks";
|
|
import { Form } from "./Form";
|
|
|
|
export function FormCreate() {
|
|
const { client } = useContext(AppContext);
|
|
|
|
return (
|
|
<Form
|
|
page="create"
|
|
callback={async data => {
|
|
await client.register(import.meta.env.VITE_API_URL, data);
|
|
}}
|
|
/>
|
|
);
|
|
}
|