> renders and matches snapshot 1`] = `
data-testid="registration-form"
novalidate=""
>
+
+
registration.sign_up
-
diff --git a/packages/ui-react/src/containers/AccountModal/forms/Registration.tsx b/packages/ui-react/src/containers/AccountModal/forms/Registration.tsx
index 42e34dc77..a79cbe5b5 100644
--- a/packages/ui-react/src/containers/AccountModal/forms/Registration.tsx
+++ b/packages/ui-react/src/containers/AccountModal/forms/Registration.tsx
@@ -6,6 +6,7 @@ import type { RegistrationFormData } from '@jwp/ott-common/types/account';
import { getModule } from '@jwp/ott-common/src/modules/container';
import AccountController from '@jwp/ott-common/src/controllers/AccountController';
import { checkConsentsFromValues, extractConsentValues, formatConsentsFromValues } from '@jwp/ott-common/src/utils/collection';
+import useSocialLoginUrls from '@jwp/ott-hooks-react/src/useSocialLoginUrls';
import useForm from '@jwp/ott-hooks-react/src/useForm';
import { modalURLFromLocation } from '@jwp/ott-ui-react/src/utils/location';
import { useAccountStore } from '@jwp/ott-common/src/stores/AccountStore';
@@ -54,6 +55,8 @@ const Registration = () => {
setConsentValues(extractConsentValues(publisherConsents));
}, [accountController, publisherConsents]);
+ const socialLoginURLs = useSocialLoginUrls(window.location.href.split('?')[0]);
+
const { handleSubmit, handleChange, handleBlur, values, errors, validationSchemaError, submitting } = useForm({
initialValues: { email: '', password: '' },
validationSchema: object().shape({
@@ -95,6 +98,7 @@ const Registration = () => {
consentValues={consentValues}
publisherConsents={publisherConsents}
loading={loading || publisherConsentsLoading}
+ socialLoginURLs={socialLoginURLs}
/>
);
};