|
|
@@ -4,92 +4,11 @@ import { useState } from 'react'; |
|
|
|
import Header from "./Header"; |
|
|
|
import { IonContent, IonPage } from '@ionic/react'; |
|
|
|
import Steps from './Steps'; |
|
|
|
import skillInfo from '../../assets/icons/skill_Information.svg'; |
|
|
|
import preliminaryRound from '../../assets/icons/Preliminary_Round.svg'; |
|
|
|
import technicalInterview from '../../assets/icons/Technical_Interview.svg'; |
|
|
|
import assignment from '../../assets/icons/Assignment.svg'; |
|
|
|
import finalInterview from '../../assets/icons/Final_Interview.svg'; |
|
|
|
import closingDocs from '../../assets/icons/Closing_Docs.svg'; |
|
|
|
import joiningLetter from '../../assets/icons/Joining_Letter.svg'; |
|
|
|
import Celebrations from '../../assets/icons/Celebrations.svg'; |
|
|
|
|
|
|
|
interface stepDetail { |
|
|
|
stepNumber: number; |
|
|
|
stepName: string; |
|
|
|
descriptionImage: string; |
|
|
|
buttonText: string; |
|
|
|
isUnlocked: boolean; |
|
|
|
link: string; |
|
|
|
} |
|
|
|
import steps from "../../mockData/StepDetails"; |
|
|
|
|
|
|
|
const InterviewRounds: React.FC = () => { |
|
|
|
|
|
|
|
let steps: stepDetail[] = [ |
|
|
|
{ |
|
|
|
stepNumber: 1, |
|
|
|
stepName: "Skill Information", |
|
|
|
descriptionImage: skillInfo, |
|
|
|
buttonText: "Let's start now", |
|
|
|
isUnlocked: true, |
|
|
|
link: "/skillInformationStep" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 2, |
|
|
|
stepName: "Preliminary Round", |
|
|
|
descriptionImage: preliminaryRound, |
|
|
|
buttonText: "Let's do this", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/preliminaryRound" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 3, |
|
|
|
stepName: "Technical Interview", |
|
|
|
descriptionImage: technicalInterview, |
|
|
|
buttonText: "Schedule meeting", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/technicalInterview" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 4, |
|
|
|
stepName: "Assignment", |
|
|
|
descriptionImage: assignment, |
|
|
|
buttonText: "Show details", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/assignment" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 5, |
|
|
|
stepName: "Final Interview", |
|
|
|
descriptionImage: finalInterview, |
|
|
|
buttonText: "Schedule meeting", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/finalInterview" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 6, |
|
|
|
stepName: "Closing Docs", |
|
|
|
descriptionImage: closingDocs, |
|
|
|
buttonText: "Upload docs", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/closingDocs" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 7, |
|
|
|
stepName: "Joining Letter", |
|
|
|
descriptionImage: joiningLetter, |
|
|
|
buttonText: "Show details", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/joiningLetter" |
|
|
|
}, |
|
|
|
{ |
|
|
|
stepNumber: 8, |
|
|
|
stepName: "Celebrations", |
|
|
|
descriptionImage: Celebrations, |
|
|
|
buttonText: "Join Workex", |
|
|
|
isUnlocked: false, |
|
|
|
link: "/celebration" |
|
|
|
}, |
|
|
|
]; |
|
|
|
const InterviewRounds: React.FC = () => { |
|
|
|
|
|
|
|
const [stepNo, setStep] = useState(1); |
|
|
|
|
|
|
@@ -107,8 +26,9 @@ const InterviewRounds: React.FC = () => { |
|
|
|
descriptionImage={step.descriptionImage} |
|
|
|
buttonText={step.buttonText} |
|
|
|
setDescription={setDescription} |
|
|
|
showDescription={(stepNo === step.stepNumber) ? true : false} |
|
|
|
showDescription={(stepNo === step.stepNumber && step.isUnlocked === true) ? true : false} |
|
|
|
link={step.link} |
|
|
|
isRoundCompleted={step.isRoundCompleted} |
|
|
|
/> |
|
|
|
); |
|
|
|
}); |
|
|
|