-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hycu): contact list by locale and tests
ref: MANAGER-14504 Signed-off-by: Thibaud Crespin <[email protected]>
- Loading branch information
Thibaud Crespin
committed
Oct 17, 2024
1 parent
2936a8a
commit 880cdca
Showing
7 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
packages/manager/apps/hycu/src/components/Description/Description.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
import { | ||
ODS_THEME_COLOR_HUE, | ||
ODS_THEME_COLOR_INTENT, | ||
ODS_THEME_TYPOGRAPHY_LEVEL, | ||
ODS_THEME_TYPOGRAPHY_SIZE, | ||
} from '@ovhcloud/ods-common-theming'; | ||
import { OsdsText } from '@ovhcloud/ods-components/react'; | ||
|
||
export interface CustomDescriptionProps { | ||
children?: any; | ||
className?: string; | ||
} | ||
|
||
/** | ||
* Copy of ODS <Description> component to pass i18n with components, not only strings | ||
*/ | ||
export const CustomDescription: React.FC<CustomDescriptionProps> = ({ | ||
children, | ||
className, | ||
}: CustomDescriptionProps) => { | ||
return ( | ||
<OsdsText | ||
className={`block ${className}`} | ||
level={ODS_THEME_TYPOGRAPHY_LEVEL.body} | ||
size={ODS_THEME_TYPOGRAPHY_SIZE._400} | ||
color={ODS_THEME_COLOR_INTENT.text} | ||
hue={ODS_THEME_COLOR_HUE._500} | ||
> | ||
{children} | ||
</OsdsText> | ||
); | ||
}; | ||
|
||
export default CustomDescription; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const CONTACT_URL_BY_SUBSIDIARY = { | ||
ASIA: 'https://www.ovhcloud.com/asia/contact/', | ||
DE: 'https://www.ovhcloud.com/de/contact/', | ||
ES: 'https://www.ovhcloud.com/es-es/contact/', | ||
WS: 'https://www.ovhcloud.com/es/contact/', | ||
IE: 'https://www.ovhcloud.com/en-ie/contact/', | ||
IT: 'https://www.ovhcloud.com/it/contact/', | ||
PL: 'https://www.ovhcloud.com/pl/contact/', | ||
PT: 'https://www.ovhcloud.com/pt/contact/', | ||
FR: 'https://www.ovhcloud.com/fr/contact/', | ||
GB: 'https://www.ovhcloud.com/en-gb/contact/', | ||
CA: 'https://www.ovhcloud.com/en-ca/contact/', | ||
QC: 'https://www.ovhcloud.com/fr-ca/contact/', | ||
US: 'https://www.ovhcloud.com/en/contact/', | ||
AU: 'https://www.ovhcloud.com/en-au/contact/', | ||
SG: 'https://www.ovhcloud.com/en-sg/contact/', | ||
MA: 'https://www.ovhcloud.com/fr-ma/contact/', | ||
SN: 'https://www.ovhcloud.com/fr-sn/contact/', | ||
TN: 'https://www.ovhcloud.com/fr-tn/contact/', | ||
NL: 'https://www.ovhcloud.com/nl/contact/', | ||
IN: 'https://www.ovhcloud.com/en-in/contact/', | ||
WE: 'https://www.ovhcloud.com/en/contact/', | ||
}; |