fix(login): make login form an observer of server config

This commit is contained in:
Paul Makles
2021-12-26 23:22:15 +00:00
parent 6caf0e6018
commit 729716b22f

View File

@@ -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>
);
}
});