-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat/#75] 고용주화면 - 초대 대기 목록 조회
- Loading branch information
Showing
7 changed files
with
286 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
import Header from "components/Header"; | ||
import { useNavigate, useParams } from "react-router-dom"; | ||
import LeftMenuCeo from "components/LeftMenuCeo"; | ||
import { useState } from "react"; | ||
import { useEffect, useState } from "react"; | ||
|
||
import "../../../style/company/company.scss"; | ||
import { useSelector } from "react-redux"; | ||
|
||
const CompanyInvite = () => { | ||
const [userEmail, setUserEmail] = useState(""); | ||
const [isValid, setIsValid] = useState(false); | ||
const [isState, setIsState] = useState(true); | ||
const invite_user = [ | ||
{ | ||
id: 0, | ||
name: "김민규", | ||
email: "[email protected]", | ||
code: "24DW4Y89", | ||
state: "대기", | ||
}, | ||
{ | ||
id: 1, | ||
name: "윤서영", | ||
email: "[email protected]", | ||
code: "DE32S5DU", | ||
state: "거절", | ||
}, | ||
]; | ||
const alba_waitlist = useSelector((state) => state.alba_waitlist); | ||
useEffect(() => {}, [invite_user]); | ||
|
||
const validateEmail = (input) => { | ||
const regex = | ||
|
@@ -41,11 +61,11 @@ const CompanyInvite = () => { | |
<h2>알바생 초대</h2> | ||
</div> | ||
<div className="main"> | ||
<h3> | ||
{/* <h3> | ||
초대할 알바생의 <b>email 주소</b>를 입력하세요. | ||
</h3> | ||
</h3> */} | ||
<div className="emailform"> | ||
<div className="email-wrapper"> | ||
{/* <div className="email-wrapper"> | ||
<input | ||
type="email" | ||
value={userEmail} | ||
|
@@ -54,12 +74,52 @@ const CompanyInvite = () => { | |
}} | ||
placeholder="ex) [email protected] ..." | ||
/> | ||
</div> | ||
</div> */} | ||
<div className="btn-wrapper"> | ||
<button onClick={handlesubmit}>초대하기</button> | ||
<button>초대하기</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="waitlist-container"> | ||
<div className="title"> | ||
<h2>초대 대기 목록</h2> | ||
</div> | ||
<div className="waitlist-wrapper"> | ||
{alba_waitlist.map((user) => ( | ||
<div className="waitlist-main"> | ||
<div className="waitlist-set"> | ||
<div className="waitlist-things"> | ||
<div className="name waitlist-one"> | ||
<label className="value">이름</label> | ||
<label>{user.user_name}</label> | ||
</div> | ||
<div className="email waitlist-one"> | ||
<label className="value">이메일</label> | ||
<label>{user.email}</label> | ||
</div> | ||
<div className="inviteCode waitlist-one"> | ||
<label className="value">초대코드</label> | ||
<label>{user.code}</label> | ||
</div> | ||
</div> | ||
<div className="invite-state"> | ||
{user.state === "대기" && ( | ||
<label className="wait state">대기</label> | ||
)} | ||
{user.state === "거절" && ( | ||
<label className="disagee state">거절</label> | ||
)} | ||
</div> | ||
</div> | ||
{user.state == "거절" && ( | ||
<div className="contract-wrapper"> | ||
<button>계약정보 수정</button> | ||
</div> | ||
)} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.