-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/info-dsm/INFO_v1_FrontEnd i…
…nto #29-CreateNotice
- Loading branch information
Showing
14 changed files
with
677 additions
and
391 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { useQuery } from "@tanstack/react-query"; | ||
import axios from "axios"; | ||
import { BaseUrl } from "../../../export/base"; | ||
const token = | ||
"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyNSIsInR5cGUiOiJhY2Nlc3MiLCJpYXQiOjE2NjgyMTc4OTAsImV4cCI6MTY2ODMwNDI5MH0.MKJc3OQID5--XKcbxn045jrArILC5Sop_e5UQXV7Fcc"; | ||
export const getBoardList = () => { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
return useQuery(["getBoardList"], async () => { | ||
const { data } = await axios({ | ||
method: "get", | ||
url: BaseUrl + "/notice", | ||
params: { id: 656574354 }, | ||
headers: { | ||
Authorization: `Bearer ${token}`, | ||
}, | ||
}); | ||
console.log(data); | ||
return data; | ||
}); | ||
}; | ||
export const noticeRequest = async (method, path, query) => { | ||
const { data } = await axios({ | ||
method: method, | ||
url: BaseUrl + path, | ||
params: { noticeId: query }, | ||
headers: { | ||
Authorization: `Bearer ${token}`, | ||
}, | ||
}); | ||
console.log(data); | ||
}; |
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
39 changes: 39 additions & 0 deletions
39
src/components/pages/teacherPage/manage/Bokli/bok/index.jsx
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as s from "../../style"; | ||
const BokliAfter = ({ wel }) => { | ||
let ad = []; | ||
if (wel.dormitorySupport) { | ||
ad.push("기숙사 지원"); | ||
} | ||
if (wel.selfDevelopmentPay) { | ||
ad.push("자기개발비"); | ||
} | ||
if (wel.equipmentSupport) { | ||
ad.push("장비지원"); | ||
} | ||
if (wel.youthTomorrowChaeumDeduction) { | ||
ad.push("청년내일채움"); | ||
} | ||
if (wel.alternativeMilitaryPlan) { | ||
ad.push("병특신청"); | ||
} | ||
if (wel.elseSupport !== null) { | ||
wel.elseSupport.map((item) => ad.push(item)); | ||
} | ||
return ( | ||
<> | ||
<s.Subdd>복리후생</s.Subdd> | ||
<s.UlLineBreak> | ||
{ad.map((user) => ( | ||
<> | ||
<s.EssentialLi> | ||
<s.ButtonProps width={101} left={20}> | ||
{user} | ||
</s.ButtonProps> | ||
</s.EssentialLi> | ||
</> | ||
))} | ||
</s.UlLineBreak> | ||
</> | ||
); | ||
}; | ||
export default BokliAfter; |
Oops, something went wrong.