-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: 파티 코스 관리 & 회사 정보 및 약관 내용 수정 (#76)
- Loading branch information
Showing
45 changed files
with
1,135 additions
and
356 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,4 +1,12 @@ | ||
import { GET } from "../utils/axios"; | ||
import { DELETE, GET, POST, PUT } from "../utils/axios"; | ||
|
||
export const getCourseDetail = async (courseId) => | ||
await GET(`/course/${courseId}`, true); | ||
|
||
export const postNewCourse = async (data) => await POST("/course", data, true); | ||
|
||
export const putCourseDetail = async (courseId, body) => | ||
await PUT(`/course/${courseId}`, body, true); | ||
|
||
export const deleteCourse = async (courseId) => | ||
await DELETE(`/course/${courseId}`, true); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,93 @@ | ||
import { Link } from "react-router-dom"; | ||
import { useState } from "react"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import { useSelector, useDispatch } from "react-redux"; | ||
import { setPartyRoomId } from "../../../redux/modules/talkRoomSlice"; | ||
import { makeNewCoupleChat } from "../../../api/chat"; | ||
import CheckModal from "../../CheckModal"; | ||
|
||
function Company() { | ||
const navigation = useNavigate(); | ||
const dispatch = useDispatch(); | ||
const user = useSelector((state) => state.user); | ||
const [showLoginModal, setShowLoginModal] = useState(false); | ||
|
||
const goMallangTalk = async () => { | ||
if (!user.auth) return setShowLoginModal(true); | ||
|
||
try { | ||
const result = await makeNewCoupleChat(0); | ||
dispatch(setPartyRoomId(result.payload.chatRoomId)); | ||
navigation("/talk"); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
}; | ||
|
||
return ( | ||
<div className="mb-10 flex justify-center flex-col sm:flex-row gap-6 sm:gap-12 lg:gap-36 mx-5 sm:mx-12 pl-5 sm:pl-0"> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">말랑트립</p> | ||
<p>대표: 김제윤</p> | ||
<p className="my-1">사업자등록번호: 399-51-00784</p> | ||
<p>경기도 의왕시 모락로 89-15 109동 403호</p> | ||
<> | ||
<div className="mb-10 flex justify-between flex-col md:flex-row mx-5 min-[900px]:mx-20 gap-5 pl-5 md:pl-0"> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">말랑트립</p> | ||
<p>대표 : 김제윤</p> | ||
<p className="my-1">사업자등록번호 : 399-51-00784</p> | ||
<p>경기도 안양시 동안구 시민대로327번길 11-41 3층 8호실</p> | ||
</div> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">고객문의</p> | ||
<p> | ||
실시간 고객상담 :{" "} | ||
<span | ||
className="underline underline-offset-2 cursor-pointer" | ||
onClick={goMallangTalk} | ||
> | ||
말랑톡 | ||
</span> | ||
,{" "} | ||
<Link | ||
to="http://pf.kakao.com/_tfMxaG/chat" | ||
target="_blank" | ||
className="underline underline-offset-2" | ||
> | ||
공식 카카오톡 | ||
</Link> | ||
</p> | ||
<p className="my-1">유선 번호 : 070-8080-2665</p> | ||
<p>기타문의 : [email protected]</p> | ||
</div> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">SNS</p> | ||
<p> | ||
INSTAGRAM :{" "} | ||
<Link | ||
to="https://www.instagram.com/mallang_trip/?hl=ko" | ||
target="_blank" | ||
className="underline underline-offset-2" | ||
> | ||
@mallang_trip | ||
</Link> | ||
</p> | ||
<p className="my-1"> | ||
KAKAO TALK :{" "} | ||
<Link | ||
to="http://pf.kakao.com/_tfMxaG/chat" | ||
target="_blank" | ||
className="underline underline-offset-2" | ||
> | ||
말랑트립 카카오톡 | ||
</Link> | ||
</p> | ||
</div> | ||
</div> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">고객문의</p> | ||
<p>실시간 고객상담: 말랑톡</p> | ||
<p className="my-1">유선 번호: 070-8080-2665</p> | ||
<p>기타문의: [email protected]</p> | ||
</div> | ||
<div className="text-xs text-darkgray"> | ||
<p className="text-sm text-boldgray font-bold mb-2.5">SNS</p> | ||
<p> | ||
INSTAGRAM:{" "} | ||
<Link | ||
to="https://www.instagram.com/mallang_trip/?hl=ko" | ||
target="_blank" | ||
className="hover:underline underline-offset-4" | ||
> | ||
@mallang_trip | ||
</Link> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<CheckModal | ||
showModal={showLoginModal} | ||
setShowModal={setShowLoginModal} | ||
message={"로그인이 필요합니다.\n로그인 하시겠습니까?"} | ||
noText={"취소"} | ||
yesText={"확인"} | ||
yesHandler={() => navigation("/login")} | ||
/> | ||
</> | ||
); | ||
} | ||
|
||
|
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
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.