|
|
@@ -5,24 +5,17 @@ import StepHeader from "../../components/stepsHeader/StepHeader"; |
|
|
|
import techinicalInterview from "../../assets/icons/Technical_Interview.svg"; |
|
|
|
import linkIcon from "../../assets/icons/link.svg"; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import { useEffect, useState } from "react"; |
|
|
|
import { useState } from "react"; |
|
|
|
import TimeSlot from "../../components/timeSlot/TimeSlot"; |
|
|
|
import { useCountdown } from "../../components/CountDownTimer/useCountdown"; |
|
|
|
import { addDays, min } from "date-fns"; |
|
|
|
import CountdownTimer from "../../components/CountDownTimer/CountdownTimer"; |
|
|
|
|
|
|
|
interface dates { |
|
|
|
date: string; |
|
|
|
day: string; |
|
|
|
} |
|
|
|
|
|
|
|
const TechnicalInterview: React.FC = () => { |
|
|
|
|
|
|
|
const [isDateSet, setDate] = useState<boolean>(false); |
|
|
|
const [isTimeSlot, setTimeSlot] = useState<boolean>(false); |
|
|
|
|
|
|
|
|
|
|
|
const [days, hours, minutes, seconds] = useCountdown(addDays(new Date(), 3)); |
|
|
|
const [days, hours, minutes, seconds] = useCountdown(new Date('may 6, 2022 07:00:00')); |
|
|
|
|
|
|
|
const getDate = () => { |
|
|
|
setTimeSlot(false); |
|
|
@@ -52,18 +45,11 @@ const TechnicalInterview: React.FC = () => { |
|
|
|
|
|
|
|
<h4>Let's Meet in:</h4> |
|
|
|
<div className={styles.timeLeft}> |
|
|
|
{/* <h4 className={styles.time}>{`${days} : ${hours} : ${minutes} : ${seconds}`}</h4> */} |
|
|
|
<CountdownTimer |
|
|
|
days={days} |
|
|
|
hours={hours} |
|
|
|
minutes={minutes} |
|
|
|
seconds={seconds} /> |
|
|
|
{/* <div className={styles.days}> |
|
|
|
<div>Days</div> |
|
|
|
<div>Hrs</div> |
|
|
|
<div>Mins</div> |
|
|
|
<div>Secs</div> |
|
|
|
</div> */} |
|
|
|
</div> |
|
|
|
<h4>Join us on Google Meet</h4> |
|
|
|
<div className={styles.icon}> |
|
|
|