Skip to content

Commit

Permalink
fix: UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsameerpvs committed Dec 27, 2023
1 parent d0ccde8 commit 86950c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ import { useTopic } from '@learning-app/syllabus';

type CourseTopicViewProps = {
topicId: string;
title: string;
description: string;
};

const CourseTopicView: FC<CourseTopicViewProps> = ({ topicId }) => {
const { data: topic } = useTopic({ topicId });
console.log(topic, 'ddddddddddd');

return (
<Box flexDirection="column" flex={1} bgColor="white" w="$full">
<Box ml="$5" pt="$5" pb="$1">
<Text fontSize="$xl" color="black" fontWeight="bold" my="$2">
CA-Primary
{topic?.title}
</Text>
<Text fontSize="$md" color="black" fontWeight="$normal">
Course Topic description
{topic?.description}
</Text>
</Box>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const quiteIconStyles = StyleSheet.create({
const McqExamPage: FC<McqExamPageProps> = ({ questions }) => {
const [showModal, setShowModal] = useState(false);
const [showSubimtModal, setShowSubimtModal] = useState(false);
const [selectedOption, setSelectedOption] = useState(null);
const [selectedOption, setSelectedOption] = useState<string | null>(null);
const [showSubmitDialog, setShowSubmitDialog] = useState(false);

const options = [
Expand All @@ -40,7 +40,7 @@ const McqExamPage: FC<McqExamPageProps> = ({ questions }) => {
{ id: 'D', label: questions[0]?.options?.[3] },
];

const handleOptionClick = (optionId) => {
const handleOptionClick = (optionId: string) => {
setSelectedOption(optionId);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ const SubmitDialog: FC<SubmitDialogProps> = (props) => {
</ModalHeader>
<ModalBody>
<Box>
<Text>
<Text color="black">
You have 10 unattended questions and 3 questions you had to
revisit.
</Text>
<Text pt="$4">Are you sure you want to submit the test ?</Text>
<Text color="black" pt="$4">
Are you sure you want to submit the test ?
</Text>
</Box>
</ModalBody>
<ModalFooter>
Expand Down

0 comments on commit 86950c9

Please sign in to comment.