mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 00:50:56 -05:00
fix(login): make login form an observer of server config
This commit is contained in:
parent
3999dbbe66
commit
ce3be17b74
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
import { CheckCircle, Envelope } from "@styled-icons/boxicons-regular";
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
|
@ -45,7 +46,7 @@ interface FormInputs {
|
|||
invite: string;
|
||||
}
|
||||
|
||||
export function Form({ page, callback }: Props) {
|
||||
export const Form = observer(({ page, callback }: Props) => {
|
||||
const configuration = useApplicationState().config.get();
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
@ -253,4 +254,4 @@ export function Form({ page, callback }: Props) {
|
|||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue