Skip to content

Commit f50c664

Browse files
committed
refactor(academy): fix typescript error
Signed-off-by: jerensl <54782057+jerensl@users.noreply.github.com>
1 parent 16c528e commit f50c664

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/custom/LearningCard/LearningCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface Props {
3030
courseType: string;
3131
}
3232

33-
const OptionalLink: React.PropsWithChildren<{ path?: string }> = ({ path, children }) => {
33+
const OptionalLink: React.FC<React.PropsWithChildren<{ path?: string }>> = ({ path, children }) => {
3434
if (!path) {
3535
return <>{children}</>;
3636
}
@@ -65,7 +65,7 @@ const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount, courseType
6565
</CardParent>
6666
</Card2>
6767
) : (
68-
<OptionalLink href={path}>
68+
<OptionalLink path={path}>
6969
<CardActive>
7070
<CardParent style={{ borderTop: `5px solid ${tutorial.frontmatter.themeColor}` }}>
7171
<div>

0 commit comments

Comments
 (0)