Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 356x 72x 15x 3x | import { ReactElement } from "react";
import { KonstiRegistrationPage } from "client/views/registration/components/KonstiRegistrationPage";
import { LoginProvider } from "shared/config/eventConfigTypes";
import { useAppSelector } from "client/utils/hooks";
import { KonstiAndKompassiRegistrationPage } from "client/views/registration/components/KonstiAndKompassiRegistrationPage";
export const RegistrationView = (): ReactElement | null => {
const loginProvider = useAppSelector((state) => state.admin.loginProvider);
if (loginProvider == LoginProvider.LOCAL) {
return <KonstiRegistrationPage />;
} else Eif (loginProvider == LoginProvider.LOCAL_KOMPASSI) {
return <KonstiAndKompassiRegistrationPage />;
}
// No separate page for Kompassi-only case, registration happens in Kompassi.
return null;
};
|