Skip to content

Commit

Permalink
feat: favicon route 수정 && 마감 자기소개서 이동 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyo-4 committed May 23, 2024
1 parent 893456a commit 47856b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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="shortcut icon" href="./flight_logo.ico" />
<link rel="shortcut icon" href="%PUBLIC_URL%/flight_logo.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
22 changes: 16 additions & 6 deletions src/pages/JDDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const JDDetailPage: React.FC = () => {
const user = getCookie("user");
const [isLoading, setIsLoading] = useState(true);
const [isModalOpen, setIsModalOpen] = useState(false);
const [isnotAvailable, setisnotAvailable] = useState(false);

const openModal = () => {
setIsModalOpen(true);
Expand Down Expand Up @@ -108,6 +109,13 @@ const JDDetailPage: React.FC = () => {
endedAt: response.data.endedAt,
};
setJdData(jdApiData);
if (
response.data.writeStatus === "CLOSED" &&
response.data.isApplyExists === false
) {
setisnotAvailable(true);
console.log("isnotExists:" + isnotAvailable);
}
} catch (error) {
console.error(error);
alert(JSON.stringify(error));
Expand Down Expand Up @@ -160,12 +168,14 @@ const JDDetailPage: React.FC = () => {
/>
공고 상세
</Title>
<TopButton onClick={handleNavigate}>
<TopButtonText>
{firstTime ? "자기소개서 작성" : "자기소개서 확인"}
<img src={arrowIcon} alt="icon" />
</TopButtonText>
</TopButton>
{!isnotAvailable && (
<TopButton onClick={handleNavigate}>
<TopButtonText>
{firstTime ? "자기소개서 작성" : "자기소개서 확인"}
<img src={arrowIcon} alt="icon" />
</TopButtonText>
</TopButton>
)}
</TopTitleBar>
<JobContainer>
<JobStatusBar>
Expand Down

0 comments on commit 47856b3

Please sign in to comment.