Skip to content

Commit

Permalink
unwanted comment deletd from applyjob component
Browse files Browse the repository at this point in the history
  • Loading branch information
ravigaya committed Aug 18, 2024
1 parent 9a3989c commit 64329ea
Showing 1 changed file with 0 additions and 70 deletions.
70 changes: 0 additions & 70 deletions frontend/client/components/Applyjob.jsx
Original file line number Diff line number Diff line change
@@ -1,74 +1,4 @@

// import React, { useEffect,useState } from 'react';
// // import {useParams} from 'react-router-dom';
// import { Link, Navigate, useNavigate,useParams } from 'react-router-dom';
// import axios from 'axios'
// const Applyjob = () => {

// const Navigate = useNavigate();
// const {id} = useParams();

// const[applyjob, setApplyJob] = useState()
// const fetchApplyJob = async ()=>{

// try{

// const token = localStorage.getItems('token');
// const url = `http://localhost:3000/api/jobs/get/${id}`
// const header = {
// 'auth-token' : `${token}`
// }
// if(token){
// const response = await axios.get(url,{header});



// if (response.ok) {
// const data = await response.data;
// console.log(data); // Log the result
// setApplyJob(data);
// } else if (response.status === 401) {
// console.error('Unauthorized: Access Denied');
// localStorage.removeItem('token'); // Clear the token
// Navigate('/login');

// } else {
// console.error('Error fetching jobs:', response.statusText);
// }
// } else {
// console.log('No token found');

// }
// }


// catch(err){
// console.log(err)
// }

// }


// console.log("ApplyJob",ApplyJob)


// useEffect(() => {
// fetchApplyJob();
// }, [])

// return (
// <div>
// <div>



// </div>
// This is apply Job
// </div>
// )
// }

// export default Applyjob


import React, { useEffect, useState } from 'react';
Expand Down

0 comments on commit 64329ea

Please sign in to comment.