Skip to content

Commit d8b7bb2

Browse files
committed
fix(pci-instances): update link and text in helper
ref: #TAPC-6674 Signed-off-by: Yann Allançon <yann.allancon.ext@corp.ovh.com>
1 parent aa0dee5 commit d8b7bb2

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

packages/manager/apps/pci-instances/src/hooks/url/useGuideLink.constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const GUIDE_LINKS: Record<TGuideKey, TGuideLinkGroup> = {
3030
LOCATION: {
3131
DEFAULT: `${HELP_URL}/fr-public-cloud-deployments-modes?id=kb_article_view&sysparm_article=KB0066031`,
3232
FR: `${HELP_URL}/fr-public-cloud-deployments-modes?id=kb_article_view&sysparm_article=KB0066031`,
33+
US: `${US_HELP_URL}/49697579836307-Comparison-and-resilience-of-Deployment-Modes-Understanding-1-AZ-Local-Zones`,
3334
},
3435
AVAILABILITY_ZONES: {
3536
DEFAULT: `${HELP_URL}/fr-public-cloud-deployments-modes?id=kb_article_view&sysparm_article=KB0066031`,

packages/manager/apps/pci-instances/src/pages/instances/create/components/deploymentMode/DeploymentModeSection.component.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
import { useContext } from 'react';
12
import { useTranslation } from 'react-i18next';
23
import { Link, Text } from '@ovhcloud/ods-react';
34
import { NAMESPACES } from '@ovh-ux/manager-common-translations';
5+
import { ShellContext } from '@ovh-ux/manager-react-shell-client';
46
import { HelpDrawer } from '@/components/helpDrawer/HelpDrawer.component';
57
import { useGuideLink } from '@/hooks/url/useGuideLink';
68
import { DeploymentModeSelection } from '@/pages/instances/create/components/deploymentMode/DeploymentModeSelection.component';
79

810
export const DeploymentModeSection = () => {
911
const { t } = useTranslation([NAMESPACES.ONBOARDING, 'creation', 'common']);
1012
const guide = useGuideLink('LOCATION');
13+
const { ovhSubsidiary } = useContext(ShellContext).environment.getUser();
14+
const isUsUser = ovhSubsidiary === 'US';
1115

1216
return (
1317
<section className="my-8">
@@ -27,9 +31,13 @@ export const DeploymentModeSection = () => {
2731
<Text preset="paragraph" className="mb-4">
2832
{t('creation:pci_instance_creation_select_deployment_mode_help_p2')}
2933
</Text>
30-
<Text preset="paragraph" className="mb-4">
31-
{t('creation:pci_instance_creation_select_deployment_mode_help_p3')}
32-
</Text>
34+
{!isUsUser && (
35+
<Text preset="paragraph" className="mb-4">
36+
{t(
37+
'creation:pci_instance_creation_select_deployment_mode_help_p3',
38+
)}
39+
</Text>
40+
)}
3341
<Text preset="paragraph" className="mb-4">
3442
{t('creation:pci_instance_creation_select_deployment_mode_help_p4')}
3543
</Text>

0 commit comments

Comments
 (0)