From 8f58e134b518c456bc7a37547dfc490a30b5dd62 Mon Sep 17 00:00:00 2001 From: Ajay_S Date: Tue, 3 May 2022 20:14:26 +0530 Subject: [PATCH] updated mock data variable name --- src/components/timeSlot/TimeSlot.tsx | 4 ++-- src/mockData/QuizDetails.ts | 4 ++-- src/mockData/StepDetails.ts | 4 ++-- src/mockData/TimeSlotDetails.ts | 2 +- src/pages/interviewRounds/InterviewRounds.tsx | 4 ++-- src/pages/quiz/Quiz.tsx | 12 ++++++------ 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/timeSlot/TimeSlot.tsx b/src/components/timeSlot/TimeSlot.tsx index a346959..94cdb91 100644 --- a/src/components/timeSlot/TimeSlot.tsx +++ b/src/components/timeSlot/TimeSlot.tsx @@ -3,7 +3,7 @@ import styles from "./TimeSlot.module.scss"; import { chevronBack } from 'ionicons/icons' import { useState } from "react"; import { format } from "date-fns"; -import { Dates, TimeSlots } from "../../mockData/TimeSlotDetails"; +import { Dates, Time_Slots } from "../../mockData/TimeSlotDetails"; interface OwnProps { month: string; @@ -34,7 +34,7 @@ const TimeSlot: React.FC = (props) => { ); }); - const timeSlots = TimeSlots.map((timeSlot, key) => { + const timeSlots = Time_Slots.map((timeSlot, key) => { return (
{ @@ -16,7 +16,7 @@ const InterviewRounds: React.FC = () => { setStep(stepNumbera); } - const stepsList = steps.map((step, key) => { + const stepsList = Step_Details.map((step, key) => { return ( { @@ -14,12 +14,12 @@ const Quiz: React.FC = () => { const updateQuestionNumber = () => { console.log("update") - if (quizDetails.length > questionNumber) { + if (Quiz_Details.length > questionNumber) { setQuestionNumber((questionNumber) => questionNumber + 1); } } console.log("no", questionNumber); - console.log(quizDetails[questionNumber - 1]); + console.log(Quiz_Details[questionNumber - 1]); return (
@@ -31,16 +31,16 @@ const Quiz: React.FC = () => { -
- +
{/*