Skip to content

Commit c87fe03

Browse files
committed
add
Signed-off-by: FaheemOnHub <[email protected]>
1 parent a9bc0c9 commit c87fe03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/custom/LearningCard/LearningCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ interface Props {
3030
path?: string;
3131
courseCount: number;
3232
courseType: string;
33-
cardKey?: string;
3433
}
3534

3635
const OptionalLink: React.FC<React.PropsWithChildren<{ path?: string; isExternal?: boolean }>> = ({
@@ -53,9 +52,8 @@ const OptionalLink: React.FC<React.PropsWithChildren<{ path?: string; isExternal
5352
);
5453
};
5554

56-
const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount, courseType, cardKey }) => {
57-
const isCreateLearningPath = cardKey === 'create-learning-path';
58-
55+
const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount, courseType }) => {
56+
const isCreateLearningPath = courseType === 'learning-card';
5957
return (
6058
<CardWrapper>
6159
{tutorial.frontmatter.disabled === 'yes' ? (

0 commit comments

Comments
 (0)