Skip to content

Commit 7a5cdee

Browse files
committed
fix: duration badge typo
1 parent cb1f25f commit 7a5cdee

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/components/badges/durationBadge.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@ import classNames from "classnames";
33
import { useRouter } from "next/router";
44
import React, { useMemo } from "react";
55

6-
interface DuratetionBadgeProps{
7-
value:number;
8-
type?:string;
6+
interface DurationBadgeProps {
7+
value: number;
8+
type?: string;
99
}
1010

11-
/**
12-
* DurationBadge component
13-
*
14-
* @param {DuratetionBadgeProps} props - The props for the DurationBadge component.
15-
* @returns {JSX.Element} The Learning component JSX element.
16-
*/
17-
export default function DurationBadge({ value, type = "gray" }: DuratetionBadgeProps) {
11+
export default function DurationBadge({ value, type = "gray" }: DurationBadgeProps) {
1812
const router = useRouter();
1913
const duration = useMemo(() => {
2014
return (value: number) => {

src/components/cards/course/CourseMaterial.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ interface CourseMaterialProps {
1717
}
1818

1919
/**
20-
* CourseMaterialProps component.
20+
* CourseMaterial component.
2121
*
22-
* @param {CourseMaterialProps} props - The props for the CourseMaterial component.
23-
* @returns {JSX.Element} The CourseMaterial component JSX element.
22+
* @param {CourseMaterial} { title, description, link, level, learningModulesCount, duration }.
23+
* @returns {JSX.Element}
2424
*/
2525
export default function CourseMaterial({ title, description, link, level, learningModulesCount, duration }: CourseMaterialProps): JSX.Element {
2626
const { t } = useTranslation();

0 commit comments

Comments
 (0)