@@ -12,19 +12,22 @@ interface QuizImageProps {
1212function typeToHeading ( type : QuizImageType ) {
1313 switch ( type ) {
1414 case 'ANSWER' :
15- return { title : 'Answers' , subtitle : "This image contains answers, it's hidden by default" } ;
15+ return { title : 'Answers Image ' , subtitle : "This image contains answers, it's hidden by default. " } ;
1616 case 'QUESTION' :
17- return { title : 'Questions' } ;
17+ return { title : 'Questions Image ' } ;
1818 case 'QUESTION_AND_ANSWER' :
19- return { title : 'Questions with Answers' , subtitle : "This image contains answers, it's hidden by default" } ;
19+ return {
20+ title : 'Questions with Answers Image' ,
21+ subtitle : "This image contains answers, it's hidden by default." ,
22+ } ;
2023 }
2124}
2225
2326export default function QuizImageComponent ( { image, className } : QuizImageProps ) {
2427 const [ isShown , setIsShown ] = useState ( image . type === 'QUESTION' ) ;
2528 const { title, subtitle } = typeToHeading ( image . type ) ;
2629 return (
27- < div className = { classnames ( 'border-solid border-y -2 py-2' , className ) } >
30+ < div className = { classnames ( 'border-solid border-t -2 py-2' , className ) } >
2831 < div className = 'mb-2 lg:mb-4 lg:flex' >
2932 < h2 className = 'lg:inline lg:flex-auto font-semibold mb-2' > { title } </ h2 >
3033 < Button danger className = 'flex-none' onClick = { ( ) => setIsShown ( ( prev ) => ! prev ) } >
0 commit comments