File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import classNames from "classnames";
3
3
import { useRouter } from "next/router" ;
4
4
import { useMemo } from "react" ;
5
5
6
- export const DurationCard = ( { value, type = "gray" } : { value : number , type ?: string } ) => {
6
+ export const DurationBadge = ( { value, type = "gray" } : { value : number , type ?: string } ) => {
7
7
const router = useRouter ( ) ;
8
8
const duration = useMemo ( ( ) => {
9
9
if ( ! value ) {
Original file line number Diff line number Diff line change 1
1
import useNavigation from "@/hooks/useNavigation" ;
2
2
import { useRouter } from "next/router" ;
3
3
import { ReactElement } from "react" ;
4
- import { DurationCard } from "../badges/Duration" ;
4
+ import { DurationBadge } from "../badges/Duration" ;
5
5
6
6
/**
7
7
* LearningModule interface
@@ -50,7 +50,7 @@ export default function Learning({ learningModule }: LearningProps): ReactElemen
50
50
< div onClick = { navigate } className = "flex flex-col" >
51
51
< div className = "w-full" >
52
52
< h4 className = "font-medium block text-xl mb-4" > { learningModule . title } </ h4 >
53
- { learningModule . duration && < DurationCard type = "bordered" value = { learningModule . duration } /> }
53
+ { learningModule . duration && < DurationBadge type = "bordered" value = { learningModule . duration } /> }
54
54
</ div >
55
55
{ learningModule . description && (
56
56
< span className = "text-sm mt-4 rounded-3xl" >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import ArrowButton from "@/components/ui/button/Arrow";
3
3
import Link from "next/link" ;
4
4
import { useTranslation } from "next-i18next" ;
5
5
import Tag from "../ui/Tag" ;
6
- import { DurationCard } from "@/components/badges/Duration" ;
6
+ import { DurationBadge } from "@/components/badges/Duration" ;
7
7
import { useMultiSelector } from "@/hooks/useTypedSelector" ;
8
8
import { IRootState } from "@/store" ;
9
9
import { LearningModule } from "@/types/course" ;
@@ -39,7 +39,7 @@ export function LearningModuleCard({ data }: { data: LearningModule }): JSX.Elem
39
39
</ div >
40
40
< div className = "gap-2 flex items-center" >
41
41
{ challenge . level && < Tag className = "uppercase" > { level } </ Tag > }
42
- < DurationCard value = { data . duration } type = "bordered" />
42
+ < DurationBadge value = { data . duration } type = "bordered" />
43
43
</ div >
44
44
</ div >
45
45
You can’t perform that action at this time.
0 commit comments