Skip to content

Commit

Permalink
added pict logo
Browse files Browse the repository at this point in the history
  • Loading branch information
sangmesh04 committed Sep 18, 2022
1 parent 5f4bfa6 commit 8ca3734
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 75 deletions.
24 changes: 0 additions & 24 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"
rel="stylesheet"
Expand All @@ -47,15 +32,6 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

45 changes: 22 additions & 23 deletions src/pages/student/CompanyDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const CompanyDetails = () => {
const [application, setApplication] = useState(null);
const [eligiblity, setEligiblity] = useState({});
const [resume, setResume] = useState(null);
const [fileAvailable, setFileAvailable] = useState(true);
const [fileError, setFileError] = useState("");
// const [fileAvailable, setFileAvailable] = useState(true);
// const [fileError, setFileError] = useState("");

const navigate = useNavigate();
// const { addToast } = useToasts(); //react toast notifications:
Expand All @@ -31,21 +31,21 @@ const CompanyDetails = () => {
setLoading(false);
});

axios
.get(`http://localhost:8080/student/company/job/eligiblity/${params.jobId}`, {
withCredentials: true,
})
.then((res) => {
console.log("After get request:", res.data.data);
// const temp = res.data.data;
setFileAvailable(true);
setLoading(false);
})
.catch((err) => {
setFileAvailable(false);
setFileError(err.response.data.message);
setLoading(false);
});
// axios
// .get(`http://localhost:8080/student/company/job/eligiblity/${params.jobId}`, {
// withCredentials: true,
// })
// .then((res) => {
// console.log("After get request:", res.data.data);
// // const temp = res.data.data;
// setFileAvailable(true);
// setLoading(false);
// })
// .catch((err) => {
// setFileAvailable(false);
// setFileError(err.response.data.message);
// setLoading(false);
// });

axios
.get(
Expand Down Expand Up @@ -128,7 +128,6 @@ const CompanyDetails = () => {
{application ? (
<>
<div className="profile-info">
<div className="panel"></div>
<div className="panel">
<div className="bio-graph-heading">
{application ? (
Expand All @@ -150,14 +149,14 @@ const CompanyDetails = () => {
<></>
)}
</div>
{fileAvailable ? (
{/* {fileAvailable ? (
<iframe
src={`http://localhost:8080/student/job/files/${params.jobId}`}
frameborder="0"
></iframe>
) : (
<p>{fileError}</p>
)}
)} */}

<div className="panel-body bio-graph-info">
<h3>About application criteria</h3>
Expand Down Expand Up @@ -286,6 +285,8 @@ const CompanyDetails = () => {
<i className="bi bi-globe"></i>
</a>
</div>
</div>
</div>

<div className="panel-body bio-graph-info">
<h3>Round details</h3>
Expand Down Expand Up @@ -361,9 +362,7 @@ const CompanyDetails = () => {
<></>
)}
</div>
</div>
</div>
</div></>
</div></>
) : null}
</div>
</div>
Expand Down

0 comments on commit 8ca3734

Please sign in to comment.