- {isPocketClient || isMonitorClient || isDesktopRelay ? (
+ {isPocketClient || isMonitorClient || isDesktopRelay || isRelayClient ? (
<>
By proceeding, you agree to the:
@@ -68,7 +70,7 @@ const TermsPrivacyAgreement = ({
)}
- {(isMonitorClient || isDesktopRelay) && (
+ {(isMonitorClient || isDesktopRelay || isRelayClient) && (
{
return !!(clientId && POCKET_CLIENTIDS.includes(clientId));
};
@@ -21,3 +27,6 @@ export const isClientPocket = (clientId?: string) => {
export const isClientMonitor = (clientId?: string) => {
return !!(clientId && MONITOR_CLIENTIDS.includes(clientId));
};
+export const isClientRelay = (clientId?: string) => {
+ return !!(clientId && RELAY_CLIENTIDS.includes(clientId));
+};
diff --git a/packages/fxa-settings/src/pages/Index/index.tsx b/packages/fxa-settings/src/pages/Index/index.tsx
index 98c291d996b..ea80fae2ee8 100644
--- a/packages/fxa-settings/src/pages/Index/index.tsx
+++ b/packages/fxa-settings/src/pages/Index/index.tsx
@@ -14,6 +14,7 @@ import TermsPrivacyAgreement from '../../components/TermsPrivacyAgreement';
import {
isClientMonitor,
isClientPocket,
+ isClientRelay,
} from '../../models/integrations/client-matching';
import { isOAuthIntegration } from '../../models';
@@ -27,6 +28,7 @@ export const Index = ({
const isOAuth = isOAuthIntegration(integration);
const isPocketClient = isOAuth && isClientPocket(clientId);
const isMonitorClient = isOAuth && isClientMonitor(clientId);
+ const isRelayClient = isOAuth && isClientRelay(clientId);
return (
{isSync ? (
@@ -72,7 +74,7 @@ export const Index = ({
)}
);
diff --git a/packages/fxa-settings/src/pages/Signin/index.tsx b/packages/fxa-settings/src/pages/Signin/index.tsx
index be764bd5742..db72229cb09 100644
--- a/packages/fxa-settings/src/pages/Signin/index.tsx
+++ b/packages/fxa-settings/src/pages/Signin/index.tsx
@@ -29,6 +29,7 @@ import {
import {
isClientMonitor,
isClientPocket,
+ isClientRelay,
} from '../../models/integrations/client-matching';
import { SigninFormData, SigninProps } from './interfaces';
import { handleNavigation } from './utils';
@@ -81,6 +82,7 @@ const Signin = ({
const clientId = integration.getClientId();
const isPocketClient = isOAuth && isClientPocket(clientId);
const isMonitorClient = isOAuth && isClientMonitor(clientId);
+ const isRelayClient = isOAuth && isClientRelay(clientId);
const hasLinkedAccountAndNoPassword = hasLinkedAccount && !hasPassword;
// We must use a ref because we may update this value in a callback
@@ -441,7 +443,7 @@ const Signin = ({
)}
diff --git a/packages/fxa-settings/src/pages/Signup/index.tsx b/packages/fxa-settings/src/pages/Signup/index.tsx
index 52b3bffa8f0..45a76c6dbd1 100644
--- a/packages/fxa-settings/src/pages/Signup/index.tsx
+++ b/packages/fxa-settings/src/pages/Signup/index.tsx
@@ -34,6 +34,7 @@ import {
import {
isClientMonitor,
isClientPocket,
+ isClientRelay,
} from '../../models/integrations/client-matching';
import { SignupFormData, SignupProps } from './interfaces';
import Banner from '../../components/Banner';
@@ -100,6 +101,9 @@ export const Signup = ({
if (isClientMonitor(clientId)) {
setClient(MozServices.Monitor);
}
+ if (isClientRelay(clientId)) {
+ setClient(MozServices.Relay);
+ }
}
}, [integration, isOAuth]);
@@ -418,6 +422,7 @@ export const Signup = ({