Skip to content

Commit 29de55d

Browse files
committed
hotfix: revert
1 parent 2b61a93 commit 29de55d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/app/questions/layout/carousel/question-carousel-card.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { QuestionWithTags } from '@/types/Questions';
22
import Link from 'next/link';
33
import Chip from '@/components/ui/chip';
44
import { capitalise, getQuestionDifficultyColor } from '@/utils';
5-
import { getUserAnswer } from '@/utils/data/answers/get-user-answer';
6-
import { CheckCircle, ChevronRight, Circle } from 'lucide-react';
5+
//import { getUserAnswer } from '@/utils/data/answers/get-user-answer';
6+
//import { CheckCircle, ChevronRight, Circle } from 'lucide-react';
77

88
export default async function QuestionCarouselCard(opts: {
99
questionData: QuestionWithTags;
1010
}) {
1111
const { questionData } = opts;
1212

13-
const userAnswered = await getUserAnswer({ questionUid: questionData.uid });
13+
//const userAnswered = await getUserAnswer({ questionUid: questionData.uid });
1414

1515
return (
1616
<Link
@@ -22,7 +22,7 @@ export default async function QuestionCarouselCard(opts: {
2222
{questionData?.question}
2323
</h6>
2424
<div className="flex w-full justify-between items-center">
25-
<div className="flex items-center gap-x-2">
25+
{/*<div className="flex items-center gap-x-2">
2626
{userAnswered ? (
2727
<CheckCircle className="flex-shrink-0 size-5 text-green-500" />
2828
) : (
@@ -43,7 +43,7 @@ export default async function QuestionCarouselCard(opts: {
4343
</div>
4444
)}
4545
</div>
46-
</div>
46+
</div> */}
4747
<Chip
4848
text={capitalise(questionData?.difficulty)}
4949
color={getQuestionDifficultyColor(questionData?.difficulty).bg}

src/utils/data/questions/get-questions-by-tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ export const getQuestionsByTag = async (tag: string | string[]) => {
3838
},
3939
},
4040
},
41-
take: 30,
41+
take: 20,
4242
});
4343
};

0 commit comments

Comments
 (0)