Skip to content

Commit 2c8c92a

Browse files
committed
fix: update links to point to cloud.layer5.io
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent fea308e commit 2c8c92a

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/custom/CatalogDetail/ChallengesSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Link, ListItemIcon } from '../../base';
33
import { ChallengesIcon } from '../../icons';
44
import { useTheme } from '../../theme';
55
import CollapsibleSection from './CollapsibleSection';
6-
import { slugify } from './helper';
6+
import { CLOUD_URL, slugify } from './helper';
77
import { LabelDiv } from './style';
88
import { FilteredAcademyData } from './types';
99

@@ -29,7 +29,7 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa
2929

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

src/custom/CatalogDetail/LearningSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Link, ListItemIcon } from '../../base';
33
import { LearningIcon } from '../../icons';
44
import { useTheme } from '../../theme';
55
import CollapsibleSection from './CollapsibleSection';
6-
import { slugify } from './helper';
6+
import { CLOUD_URL, slugify } from './helper';
77
import { LabelDiv } from './style';
88
import { FilteredAcademyData } from './types';
99

@@ -29,7 +29,7 @@ const LearningSection: React.FC<LearningSectionProps> = ({ filteredAcademyData }
2929

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

src/custom/CatalogDetail/UserInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Avatar } from '../../base';
22
import { Pattern } from '../CustomCatalog/CustomCard';
33
import { getVersion } from '../CustomCatalog/Helper';
4-
import { formatDate } from './helper';
4+
import { CLOUD_URL, formatDate } from './helper';
55
import { ContentDetailsPoints, ContentDetailsText, ContentRow, RedirectLink } from './style';
66
import { UserProfile } from './types';
77

@@ -32,7 +32,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ details, showVersion = true, userPr
3232
}}
3333
/>
3434
<RedirectLink
35-
href={`https://meshery.layer5.io/user/${details?.user_id}`}
35+
href={`${CLOUD_URL}/user/${details?.user_id}`}
3636
target="_blank"
3737
rel="noopener noreferrer"
3838
>

src/custom/CatalogDetail/helper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import jsyaml from 'js-yaml';
22

3+
export const CLOUD_URL = 'https://cloud.layer5.io';
4+
35
export const downloadYaml = (filteredData: string, itemName: string): void => {
46
const yamlData = Array.isArray(filteredData)
57
? jsyaml.dump(filteredData.find((item) => item.name === itemName))

0 commit comments

Comments
 (0)