Skip to content

Commit f66083f

Browse files
committed
TCA-1098 - make cert title as link
1 parent 2c469f0 commit f66083f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src-ts/tools/learn/learn-lib/tca-certification-progress-box/TCACertificationProgressBox.module.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
.externalLink {
5757
display: flex;
58+
gap: $space-xs;
5859
height: 24px;
5960
align-items: center;
6061
color: $turq-160;
@@ -95,7 +96,7 @@
9596
}
9697

9798
}
98-
99+
99100
.wrap:global(.theme-sidebar) {
100101
background: $black-5;
101102
color: $tc-black;
@@ -121,4 +122,4 @@
121122
.statusBox {
122123
background: $tc-white;
123124
}
124-
}
125+
}

src-ts/tools/learn/learn-lib/tca-certification-progress-box/TCACertificationProgressBox.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ const TCACertificationProgressBox: FC<TCACertificationProgressBoxProps> = (props
127127
This course is part of a topcoder certification:
128128
</div>
129129
<div className={classNames(styles.certTitle, 'body-main-bold')}>
130-
{certification.title}
131-
{!!certifProgress && (
132-
<Link className={styles.externalLink} to={certifUrl}>
130+
{!!certifProgress ? (
131+
<Link className={styles.externalLink} to={certifUrl} target='_blank'>
132+
{certification.title}
133133
<IconOutline.ExternalLinkIcon />
134134
</Link>
135-
)}
135+
) : certification.title}
136136
</div>
137137
</div>
138138
</div>

0 commit comments

Comments
 (0)