-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 지원현황/면접기록 목록페이지에서 합불상태를 조회할 수 있다. #213
Changes from 1 commit
015211b
cd6cc15
567072e
4940ef7
9bf04a1
e1f8890
a478b41
95d84eb
a0b90a1
6ddf78d
2115e1b
40930e1
8781867
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import Modal from "react-modal"; | ||
import CloseImage from "/public/icons/ellipsis.multiply.svg"; | ||
import Image from "next/image"; | ||
import { cn } from "@/src/utils/cn"; | ||
|
||
const modalStyle = { | ||
content: { | ||
width: "calc(100% - 12rem)", | ||
zIndex: "9999", | ||
height: "calc(100%)", | ||
margin: "3rem 6rem 0 6rem", | ||
minWidth: "1280px", | ||
boxShadow: "0px 0px 6px 1px rgba(0, 0, 0, 0.14)", | ||
border: "none", | ||
position: "relative", | ||
inset: "0", | ||
padding: "2.5rem 3rem", | ||
}, | ||
overlay: { | ||
padding: "0", | ||
position: "absolute", | ||
}, | ||
} as const; | ||
|
||
interface BoardModalProps extends Modal.Props { | ||
wrapperClassname?: string; | ||
} | ||
|
||
const BoardModal = ({ | ||
wrapperClassname, | ||
style, | ||
children, | ||
...props | ||
}: BoardModalProps) => { | ||
return ( | ||
<Modal style={{ ...modalStyle, ...style }} {...props}> | ||
<button className="absolute z-10" onClick={props.onRequestClose}> | ||
<Image src={CloseImage} alt="close" /> | ||
</button> | ||
<div | ||
className={cn( | ||
"flex pt-8 absolute h-[calc(100%-6rem)] w-[calc(100%-6rem)]", | ||
wrapperClassname | ||
)} | ||
> | ||
{children} | ||
</div> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default BoardModal; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Txt from "../Txt.component"; | ||
import { BoardData } from "./Board"; | ||
import BoardCell from "./BoardCell.component"; | ||
|
||
interface BoardTableProps { | ||
boardRows: BoardData[]; | ||
handleModalOpen: (id: string) => () => void; | ||
} | ||
const BoardTable = ({ boardRows, handleModalOpen }: BoardTableProps) => { | ||
return ( | ||
<section className="flex flex-col"> | ||
{boardRows.length === 0 ? ( | ||
<Txt>검색결과가 없습니다.</Txt> | ||
) : ( | ||
<> | ||
{boardRows.map((item) => ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 해당 부분 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 좋네요 ! 수정해보도록 하겠습니다 :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<BoardCell | ||
key={item.id} | ||
title={item.title} | ||
subElements={item.subElements} | ||
onClick={handleModalOpen(item.id)} | ||
/> | ||
))} | ||
</> | ||
)} | ||
</section> | ||
); | ||
}; | ||
|
||
export default BoardTable; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapperClassName으로 작성하는게 좋아보입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오타 제보 감사용
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8781867