+
+
+
+
+ setStartDate(date)}
+ selectsStart
+ startDate={startDate}
+ />
+
+
+
+
+
+ setTitle(e.target.value)}
+ />
+ setContent(e.target.value)}
+ />
+
+
+
+
+
+ 취소
+ 저장
+
+
+ {isCancelModalOpen && (
+
+ 작성을 취소하시겠습니까?
+
+ }
+ w="70%"
+ h="15rem"
+ buttons={
+
+ 아니오
+ 예
+
+ }
+ />
+ )}
+
+ {isSaveModalOpen && (
+
+ 일기를 저장할까요?
+
+ }
+ w="70%"
+ h="15rem"
+ buttons={
+
+ 취소
+ 확인
+
+ }
+ />
+ )}
+
+ ;
+};
+
+const DateDiv = styled.div`
+ display: flex;
+ align-items: center;
+ background-color: none;
+ width: 80%;
+ border: none;
+ font-size: 15px;
+ border-bottom: solid #bfbfbf 1px;
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 10%;
+`;
+const CalenderImage = styled.img`
+ padding: 1.2%;
+`;
+
+const StyledDatePicker = styled.div`
+ .react-datepicker-wrapper{
+ width: 70%;
+ }
+ .react-datepicker__input-container{
+ width: 100%;
+ }
+ .react-datepicker__input-container input {
+ background-color: none;
+ width: 100%;
+ border: none;
+ font-size: 15px;
+ &::placeholder {
+ color: #bfbfbf;
+ }
+ }
+`;
+
+
+const TitleBox = styled.input`
+ display: flex;
+ background-color: none;
+ width: 92%;
+ border: none;
+ font-size: 15px;
+ border-bottom: solid ${COLOR.MAIN_SKY} 1px;
+ margin: auto;
+ margin-top: 2rem;
+ padding-bottom: 1rem;
+ &::placeholder {
+ color: #bfbfbf;
+ }
+`;
+
+const ContentBox = styled.textarea`
+ display: flex;
+ background-color: none;
+ width: 92%;
+ height: 37rem;
+ border: none;
+ font-size: 15px;
+ margin: auto;
+ margin-top: 1rem;
+ &::placeholder {
+ color: #bfbfbf;
+ }
+`;
+
+const DiaryDiv = styled.div`
+ display: flex;
+ flex-direction: column;
+ background-color: none;
+ font-size: 15px;
+ color: #BFBFBF;
+ border: 1px solid ${COLOR.MAIN_SKY};
+ border-radius: 1.8rem;
+ margin-top: 2.5rem;
+ margin-left: 8%;
+ margin-right: 8%;
+`;
+
+const BtnDiv = styled.div`
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ margin-top: 4%;
+ margin-bottom: 5rem;
+`;
+const CancelBtn = styled.button`
+ height: 4rem;
+ width: 14.5rem;
+ font-size: 1.8rem;
+ font-weight: 600;
+ background-color: white;
+ border: none;
+ border-radius: 3rem;
+ box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
+ margin-right: 3%;
+`;
+const SaveBtn = styled.button`
+ height: 4rem;
+ width: 14.5rem;
+ font-size: 1.8rem;
+ font-weight: 600;
+ color: white;
+ background-color: #2EABA1;
+ border: none;
+ border-radius: 3rem;
+ box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.4);
+ margin-left: 3%;
+ background-color: ${(props) => props.disabled ? "rgba(46, 171, 161, 0.3)" : "${COLOR.MAIN_EMER}"}
+`;
+const OkayBtn = styled.button`
+ height: 2.5rem;
+ width: 10rem;
+ font-size: 1.7rem;
+ font-weight: 600;
+ text-align: center;
+ vertical-align: center;
+ color: white;
+ border: none;
+ border-radius: 3rem;
+ &.no {
+ color: black;
+ background-color: #D9D9D9;
+ margin-right: 1rem;
+ }
+ &.yes {
+ background-color: ${COLOR.MAIN_GREEN};
+ }
+`;
+const OkayDiv = styled.div`
+ margin-top: 3rem;
+`;
+
+const ContentDiv = styled.div`
+ text-align: center;
+ font-size: 1.8rem;
+ margin-top: 4rem;
+`;
+
+
+export default EditDiaryWritePage;
+
+
diff --git a/src/recoil/commonState.js b/src/recoil/commonState.js
index 56bbd8d..484fc0c 100644
--- a/src/recoil/commonState.js
+++ b/src/recoil/commonState.js
@@ -9,3 +9,8 @@ export const tripNameState = atom({
key: "tripName",
default: "",
});
+
+export const tripIdState = atom({
+ key: "tripId",
+ default: "",
+});
diff --git a/src/routes/router.js b/src/routes/router.js
index 18fd8ab..f7822fa 100644
--- a/src/routes/router.js
+++ b/src/routes/router.js
@@ -9,6 +9,7 @@ import EditProfilPage from "../pages/EditProfilPage";
import JoinTripPage from "../pages/JoinTripPage";
import InviteFriendPage from "../pages/InviteFriendPage";
import TagPage from "../pages/TagPage";
+import EditDiaryWritePage from "../pages/EditDiaryWritePage";
import React from "react";
import DiaryListPage from "../pages/DiaryListPage";
@@ -25,6 +26,7 @@ const Router = () => {