Skip to content

Commit

Permalink
Merge pull request #808 from amitamrutiya/update-url
Browse files Browse the repository at this point in the history
update links to point to cloud.layer5.io
  • Loading branch information
amitamrutiya authored Nov 13, 2024
2 parents c552754 + 970c987 commit 4222aad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export const KEPPEL_GREEN_FILL = '#00B39F';
export const CARIBBEAN_GREEN_FILL = '#00D3A9';
export const DEFAULT_STROKE = '#000';
export const DEFAULT_STROKE_WIDTH = '2';
export const CLOUD_URL = 'https://cloud.layer5.io';
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/ChallengesSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
import { Link, ListItemIcon } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { ChallengesIcon } from '../../icons';
import { useTheme } from '../../theme';
import CollapsibleSection from './CollapsibleSection';
Expand Down Expand Up @@ -29,7 +30,7 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa

const renderChallengeItem = (item: string, index: number) => (
<Link
href={`https://meshery.layer5.io/academy/challenges/${slugify('' + item)}`}
href={`${CLOUD_URL}/academy/challenges/${slugify('' + item)}`}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: 'none', color: 'inherit' }}
Expand Down
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/LearningSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Link, ListItemIcon } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { LearningIcon } from '../../icons';
import { useTheme } from '../../theme';
import CollapsibleSection from './CollapsibleSection';
Expand Down Expand Up @@ -29,7 +30,7 @@ const LearningSection: React.FC<LearningSectionProps> = ({ filteredAcademyData }

const renderLearningItem = (item: string, index: number) => (
<Link
href={`https://meshery.layer5.io/academy/learning-paths/${slugify('' + item)}`}
href={`${CLOUD_URL}/academy/learning-paths/${slugify('' + item)}`}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: 'none', color: 'inherit' }}
Expand Down
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/UserInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Avatar } from '../../base';
import { CLOUD_URL } from '../../constants/constants';
import { Pattern } from '../CustomCatalog/CustomCard';
import { getVersion } from '../CustomCatalog/Helper';
import { formatDate } from './helper';
Expand Down Expand Up @@ -32,7 +33,7 @@ const UserInfo: React.FC<UserInfoProps> = ({ details, showVersion = true, userPr
}}
/>
<RedirectLink
href={`https://meshery.layer5.io/user/${details?.user_id}`}
href={`${CLOUD_URL}/user/${details?.user_id}`}
target="_blank"
rel="noopener noreferrer"
>
Expand Down

0 comments on commit 4222aad

Please sign in to comment.