Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type LearnCertificateTrackType = 'QA'|'DEV'|'DATASCIENCE'|'DESIGN'
export type LearnCertificateTrackType = 'QA'|'DEV'|'DATASCIENCE'|'DESIGN'|'INTERVIEW'|'SECURITY'
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,30 @@ import {
DesignBadgeImg,
DevelopBadge,
DevelopBadgeImg,
InterviewBadge,
InterviewBadgeImg,
QABadge,
QABadgeImg,
SecurityBadge,
SecurityBadgeImg,
} from './badges'

const badgesMap: {[key: string]: FC<SVGProps<SVGSVGElement>>} = {
DATASCIENCE: DataScienceBadge,
DESIGN: DesignBadge,
DEV: DevelopBadge,
INTERVIEW: InterviewBadge,
QA: QABadge,
SECURITY: SecurityBadge,
}

const badgesImgMap: {[key: string]: string} = {
DATASCIENCE: DataScienceBadgeImg,
DESIGN: DesignBadgeImg,
DEV: DevelopBadgeImg,
INTERVIEW: InterviewBadgeImg,
QA: QABadgeImg,
SECURITY: SecurityBadgeImg,
}

export function getBadge(badgeType: keyof typeof badgesMap): FC<SVGProps<SVGSVGElement>> {
Expand Down
14 changes: 11 additions & 3 deletions src-ts/tools/learn/learn-lib/course-badge/badges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ import DesignBadgeImg from './design-badge.png'
import { ReactComponent as DesignBadge } from './design-badge.svg'
import DevelopBadgeImg from './develop-badge.png'
import { ReactComponent as DevelopBadge } from './develop-badge.svg'
import InterviewBadgeImg from './interview-badge.png'
import { ReactComponent as InterviewBadge } from './interview-badge.svg'
import QABadgeImg from './qa-badge.png'
import { ReactComponent as QABadge } from './qa-badge.svg'
import SecurityBadgeImg from './security-badge.png'
import { ReactComponent as SecurityBadge } from './security-badge.svg'

export {
DataScienceBadge,
DesignBadge,
DevelopBadge,
QABadge,
DataScienceBadgeImg,
DesignBadge,
DesignBadgeImg,
DevelopBadge,
DevelopBadgeImg,
InterviewBadge,
InterviewBadgeImg,
QABadge,
QABadgeImg,
SecurityBadge,
SecurityBadgeImg,
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.