Skip to content

Commit 15eb7be

Browse files
committed
feat: update path
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent 2c8c92a commit 15eb7be

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

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,9 +1,10 @@
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';
6-
import { CLOUD_URL, slugify } from './helper';
7+
import { slugify } from './helper';
78
import { LabelDiv } from './style';
89
import { FilteredAcademyData } from './types';
910

src/custom/CatalogDetail/LearningSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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';
6-
import { CLOUD_URL, slugify } from './helper';
7+
import { slugify } from './helper';
78
import { LabelDiv } from './style';
89
import { FilteredAcademyData } from './types';
910

src/custom/CatalogDetail/UserInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Avatar } from '../../base';
2+
import { CLOUD_URL } from '../../constants/constants';
23
import { Pattern } from '../CustomCatalog/CustomCard';
34
import { getVersion } from '../CustomCatalog/Helper';
4-
import { CLOUD_URL, formatDate } from './helper';
5+
import { formatDate } from './helper';
56
import { ContentDetailsPoints, ContentDetailsText, ContentRow, RedirectLink } from './style';
67
import { UserProfile } from './types';
78

src/custom/CatalogDetail/helper.ts

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

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

0 commit comments

Comments
 (0)