File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const Modes: NextPage<{ searchParams: { url: string; name: string } }> = ({
2323 } }
2424 heading = "Practice mode"
2525 paragraph = "Learn and familiarize yourself with the questions and answers without any time constraint."
26+ subparagraph = "You can copy URL to comeback to the same question later."
2627 wrapperClassNames = "from-[#0284C7] to-[#2DD48F]"
2728 headingClassNames = "group-hover:from-[#0284C7] group-hover:to-[#2DD48F]"
2829 />
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ interface ExamLinkProps
77 LinkProps {
88 heading : string ;
99 paragraph : string ;
10+ subparagraph ?: string ;
1011 wrapperClassNames ?: string ;
1112 headingClassNames ?: string ;
1213}
@@ -16,6 +17,7 @@ const ExamLink = ({
1617 paragraph,
1718 wrapperClassNames,
1819 headingClassNames,
20+ subparagraph = "" ,
1921 ...linkProps
2022} : ExamLinkProps ) => {
2123 return (
@@ -36,6 +38,9 @@ const ExamLink = ({
3638 { heading }
3739 </ h2 >
3840 < p className = "text-sm text-slate-400 mt-7" > { paragraph } </ p >
41+ { subparagraph !== "" && (
42+ < p className = "text-sm text-slate-400 mt-2" > { subparagraph } </ p >
43+ ) }
3944 </ div >
4045 </ Link >
4146 ) ;
You can’t perform that action at this time.
0 commit comments