From 8df51bfd9de30fc56c6bede86ff5aa7a031a3c25 Mon Sep 17 00:00:00 2001 From: Rushabh528 Date: Sat, 12 Oct 2024 12:38:40 +0530 Subject: [PATCH] Applications and recuited added --- components/Utils/IconMap.tsx | 1 + .../rc/[rcid]/proforma/[proformaid]/step5.tsx | 22 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/components/Utils/IconMap.tsx b/components/Utils/IconMap.tsx index bc0a8362..d0517682 100644 --- a/components/Utils/IconMap.tsx +++ b/components/Utils/IconMap.tsx @@ -17,6 +17,7 @@ const iconMap: { [key: string]: React.ReactElement } = { "Aptitude Test": , "Technical Interview": , "HR Interview": , + Recruited: , Other: , }; diff --git a/pages/company/rc/[rcid]/proforma/[proformaid]/step5.tsx b/pages/company/rc/[rcid]/proforma/[proformaid]/step5.tsx index 4a083d52..5f7a9d0a 100644 --- a/pages/company/rc/[rcid]/proforma/[proformaid]/step5.tsx +++ b/pages/company/rc/[rcid]/proforma/[proformaid]/step5.tsx @@ -67,6 +67,7 @@ function Step5() { control, name: "fieldArray", }); + useEffect(() => { const fetchStep4 = async () => { if (router.isReady) { @@ -161,6 +162,14 @@ function Step5() { }; const handleAdd = (id: number) => { + // eslint-disable-next-line eqeqeq + if (fields.length == 0) { + append({ + label: "Applications", + duration: "0 min", + }); + setActiveStep(fields.length + 1); + } append({ label: tiles[id].label, duration: tiles[id].duration, @@ -327,7 +336,18 @@ function Step5() {