-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pci.private-network): Add link to string 'En savoir plus ici' on vlan config step #13304
feat(pci.private-network): Add link to string 'En savoir plus ici' on vlan config step #13304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit worried about rerendering on the trans component, can you check that there isn't too much rerenders ?
@SimonChaumet that's seem good to me but I'm interested in your point of view. By the way a rework will coming soon for the entire page then I'll make sure we optimize const |
b551abd
@@ -113,6 +113,10 @@ export default function ConfigurationStep({ | |||
GUIDE_LINKS.REGION_AVAILABILITY[ovhSubsidiary] || | |||
GUIDE_LINKS.REGION_AVAILABILITY.DEFAULT; | |||
|
|||
// TODO: verify rerender |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something you forgot or legit to keep this TODO here ?
<Trans | ||
t={t} | ||
i18nKey="pci_projects_project_network_private_create_vlan_tip" | ||
components={{ | ||
link: ( | ||
<a | ||
href={VLAN_GUIDE_URL} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{tCommon('common_find_out_more_here')} | ||
</a> | ||
), | ||
}} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want block this PR but why don't use a simple :
<Trans | |
t={t} | |
i18nKey="pci_projects_project_network_private_create_vlan_tip" | |
components={{ | |
link: ( | |
<a | |
href={VLAN_GUIDE_URL} | |
target="_blank" | |
rel="noreferrer" | |
> | |
{tCommon('common_find_out_more_here')} | |
</a> | |
), | |
}} | |
/> | |
{t('pci_projects_project_network_private_create_vlan_tip")} | |
<a | |
href={VLAN_GUIDE_URL} | |
target="_blank" | |
rel="noreferrer" | |
> | |
{tCommon('common_find_out_more_here')} | |
</a> |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And replace <a />
by Link component for have unified behaviour 🙂
packages/manager-react-components/src/components/typography/links/links.component.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, nice catch thank you
ea32ff9
ea32ff9
ea32ff9
to
8417058
Compare
ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]>
ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]>
368dee7
to
02249e0
Compare
Quality Gate passedIssues Measures |
… vlan config step (#13304) ref: TAPC-735 Signed-off-by: tsiorifamonjena <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]>
ref: TAPC-735
develop
Description
Related