Skip to content

Commit

Permalink
fix: JD modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hyo-4 committed May 22, 2024
1 parent 5916ba7 commit c8f297c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
35 changes: 35 additions & 0 deletions src/components/JD/ExperienceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,41 @@ const ExperienceList: React.FC<ExperienceListProps> = ({
endedAt: "2024-05-23T07:45:23.720832019",
bookmarked: "OFF",
},
{
id: "7694c6e7-b7a8-4ee8-a698-67c345932663",
title: "경험 제목 3",
parentTag: {
id: "c191d753-0c59-42eb-8245-79ee5c9c5797",
name: "상위 태그 이름",
},
childTag: {
id: "860c446b-a021-43d5-9da6-5034a5bdaee7",
name: "하위 태그 이름",
},
strongPoints: [
{
id: "fdbf03bf-c1a3-4442-997e-467605868052",
name: "역량 키워드 이름 1",
},
{
id: "096c3d2e-4073-4724-9a15-c1d6617c63a1",
name: "역량 키워드 이름 2",
},
],
contents: [
{
question: "질문1",
answer: "답변1",
},
{
question: "질문2",
answer: "답변2",
},
],
startedAt: "2023-05-22T07:45:23.720822702",
endedAt: "2024-05-23T07:45:23.720832019",
bookmarked: "ON",
},
]);
const jdId = useParams().jdId;

Expand Down
13 changes: 4 additions & 9 deletions src/components/JD/JDModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";
import styled from "styled-components";
import warning from "../../assets/icons/icon_warning.svg";
import warning from "../../assets/icons/icon_delete_warning.svg";
import { useNavigate } from "react-router-dom";

interface ModalProps {
Expand All @@ -20,12 +20,7 @@ const Modal: FC<ModalProps> = ({ isOpen, onClose }) => {
<MainWrapper>
<img src={warning} alt="warning" />
<div className="maintext">이전 페이지로 돌아가시겠어요?</div>
<div className="subtext">
저장하지 않으면
<div>
입력한 내용은 <span>복원할 수 없어요!</span>
</div>
</div>
<div className="subtext">작성하던 공고가 저장되지 않아요!</div>
</MainWrapper>
<ButtonWrapper>
<CloseButton onClick={onClose}>
Expand Down Expand Up @@ -85,7 +80,7 @@ const MainWrapper = styled.div`
font-weight: 600;
line-height: 1.625rem;
letter-spacing: -0.055rem;
margin-top: 1.25rem;
margin-top: 1rem;
}
.subtext {
color: var(--neutral-500, #A6AAC0);
Expand All @@ -95,7 +90,7 @@ const MainWrapper = styled.div`
font-weight: 500;
line-height: 1.25rem;
letter-spacing: -0.02rem;
margin-top: 1.25rem;
margin-bottom: 1rem;
span{
color: var(--main-500, #7D82FF);
font-size: 1.2rem;
Expand Down

0 comments on commit c8f297c

Please sign in to comment.