+
{tombstoneEvent ? (
void;
+};
+
+// Registration only: ticking it is the newcomer's acceptance of the current notice version.
+export function TrainingNotice({ checked, onToggle }: TrainingNoticeProps) {
+ return (
+
+
+
+ {TRAINING_NOTICE_TEXT}
+
+
+ );
+}
diff --git a/src/app/pages/auth/register/PasswordRegisterForm.tsx b/src/app/pages/auth/register/PasswordRegisterForm.tsx
index c9b1924c..99feed1a 100644
--- a/src/app/pages/auth/register/PasswordRegisterForm.tsx
+++ b/src/app/pages/auth/register/PasswordRegisterForm.tsx
@@ -32,6 +32,7 @@ import { AsyncState, AsyncStatus, useAsyncCallback } from '../../../hooks/useAsy
import { useAutoDiscoveryInfo } from '../../../hooks/useAutoDiscoveryInfo';
import { RegisterError, RegisterResult, register, useRegisterComplete } from './registerUtil';
import { FieldError } from '../FiledError';
+import { TrainingNotice } from '../TrainingNotice';
import {
AutoDummyStageDialog,
AutoTermsStageDialog,
@@ -192,6 +193,7 @@ export function PasswordRegisterForm({
const [formData, setFormData] = useState();
const [ongoingFlow, setOngoingFlow] = useState();
+ const [trainingAck, setTrainingAck] = useState(false);
const [registerEmailState, registerEmail] = useRegisterEmail(mx);
@@ -389,7 +391,8 @@ export function PasswordRegisterForm({
)}
-