Skip to content

Commit 4222aad

Browse files
authored
Merge pull request #808 from amitamrutiya/update-url
update links to point to cloud.layer5.io
2 parents c552754 + 970c987 commit 4222aad

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/constants/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export const KEPPEL_GREEN_FILL = '#00B39F';
66
export const CARIBBEAN_GREEN_FILL = '#00D3A9';
77
export const DEFAULT_STROKE = '#000';
88
export const DEFAULT_STROKE_WIDTH = '2';
9+
export const CLOUD_URL = 'https://cloud.layer5.io';

src/custom/CatalogDetail/ChallengesSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect, useState } from 'react';
22
import { Link, ListItemIcon } from '../../base';
3+
import { CLOUD_URL } from '../../constants/constants';
34
import { ChallengesIcon } from '../../icons';
45
import { useTheme } from '../../theme';
56
import CollapsibleSection from './CollapsibleSection';
@@ -29,7 +30,7 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa
2930

3031
const renderChallengeItem = (item: string, index: number) => (
3132
<Link
32-
href={`https://meshery.layer5.io/academy/challenges/${slugify('' + item)}`}
33+
href={`${CLOUD_URL}/academy/challenges/${slugify('' + item)}`}
3334
target="_blank"
3435
rel="noopener noreferrer"
3536
style={{ textDecoration: 'none', color: 'inherit' }}

src/custom/CatalogDetail/LearningSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22
import { Link, ListItemIcon } from '../../base';
3+
import { CLOUD_URL } from '../../constants/constants';
34
import { LearningIcon } from '../../icons';
45
import { useTheme } from '../../theme';
56
import CollapsibleSection from './CollapsibleSection';
@@ -29,7 +30,7 @@ const LearningSection: React.FC<LearningSectionProps> = ({ filteredAcademyData }
2930

3031
const renderLearningItem = (item: string, index: number) => (
3132
<Link
32-
href={`https://meshery.layer5.io/academy/learning-paths/${slugify('' + item)}`}
33+
href={`${CLOUD_URL}/academy/learning-paths/${slugify('' + item)}`}
3334
target="_blank"
3435
rel="noopener noreferrer"
3536
style={{ textDecoration: 'none', color: 'inherit' }}

src/custom/CatalogDetail/UserInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Avatar } from '../../base';
2+
import { CLOUD_URL } from '../../constants/constants';
23
import { Pattern } from '../CustomCatalog/CustomCard';
34
import { getVersion } from '../CustomCatalog/Helper';
45
import { formatDate } from './helper';
@@ -32,7 +33,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ details, showVersion = true, userPr
3233
}}
3334
/>
3435
<RedirectLink
35-
href={`https://meshery.layer5.io/user/${details?.user_id}`}
36+
href={`${CLOUD_URL}/user/${details?.user_id}`}
3637
target="_blank"
3738
rel="noopener noreferrer"
3839
>

0 commit comments

Comments
 (0)