diff --git a/src/constants/constants.ts b/src/constants/constants.ts index 3b23acd7..e65be201 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -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'; diff --git a/src/custom/CatalogDetail/ChallengesSection.tsx b/src/custom/CatalogDetail/ChallengesSection.tsx index 77028a2f..2cec1cd7 100644 --- a/src/custom/CatalogDetail/ChallengesSection.tsx +++ b/src/custom/CatalogDetail/ChallengesSection.tsx @@ -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'; @@ -29,7 +30,7 @@ const ChallengesSection: React.FC = ({ filteredAcademyDa const renderChallengeItem = (item: string, index: number) => ( = ({ filteredAcademyData } const renderLearningItem = (item: string, index: number) => ( = ({ details, showVersion = true, userPr }} />