diff --git a/README.md b/README.md
index 30e5968..fbbebdd 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
# ๐๏ธ TRIPTRIP
-**`ํ๋ก์ ํธ ์๊ฐ`** ๋ค์ด๋ฒ ์ผํ ์ฌํ ์ํ์ ์๊ฐ ๋ฐ ์ฐ๊ฒฐํ๊ณ ์ฌํ์ง ํ๊ธฐ ์ปค๋ฎค๋ํฐ๋ฅผ ์ด์ฉํ ์ ์๋ ์๋น์ค๋ฅผ ์ ๊ณตํ๋ ์ฌ์ดํธ์
๋๋ค.
+**`ํ๋ก์ ํธ ์๊ฐ`** ๊ตญ๋ด ์ฌํ์ง ๊ด๋ จ ๋ค์ด๋ฒ ์ํ API๋ฅผ ํ์ํ ์ฌํ ์ํ ์๊ฐ ๋ฐ ์ปค๋ฎค๋ํฐ ์ฌ์ดํธ
-**`๊ฐ๋ฐ๊ธฐ๊ฐ`** 2023.11.27 - 2023.12.22
+**`๊ฐ๋ฐ๊ธฐ๊ฐ`** 2023.11.27 - 2023.12.29 (5์ฃผ)
-**`๋ฐฐํฌ๋งํฌ`**
+**`๋ฐฐํฌ๋งํฌ`** [**TRIPTRIP**](https://triptrip.site/)
@@ -21,13 +21,16 @@
+
+
+
## ๐งโ๐ป ํ๋ก ํธ์๋ ๋ฉค๋ฒ๊ตฌ์ฑ
-**์กฐํ์ง :** ์ฌํ ํฌ๋ผ CRUD, ๋ง์ดํ์ด์ง, ์ค์๊ฐ ์๋ฆผ, ๊ฒ์
+**์กฐํ์ง :** ์ฌํ ํฌ๋ผ CRUD, ๋ง์ดํ์ด์ง, ์ค์๊ฐ ์๋ฆผ, ๊ฒ์, AWS ๋ฐฐํฌ
**๋ฐํจ์ :** ํ์๊ฐ์
, ๋ก๊ทธ์ธ, Oauth, ์ํ CRUD
@@ -40,3 +43,16 @@
- ๋๋ฒ
์ด ์ฌํ์๋ค์ ์ํ ๊ณ ์๋ฒ์ค ์๊ฐํ ๋ณด๊ธฐ
- ์ด๋ฏธ ๋ค๋
์จ ์ ๋ฐฐ ์ฌํ์๋ค์ ์ฌํ ํ๊ธฐ ์ปค๋ฎค๋ํฐ
- ๊ด์ฌ์๋ ์ฌํ์ง ์ํ ์ ๋ฑ๋ก ์ ์ค์๊ฐ ์๋ฆผ
+- ๋ง์ดํ์ด์ง์์ ํ๋กํ ์์ ๋ฐ ๊ด์ฌ ํ๊ทธ ์ค์
+- ๋ฐ์ํ ์น ํ์ด์ง
+- ๋คํฌ๋ชจ๋, ๋ผ์ดํธ ๋ชจ๋
+
+
+
+## ๐ค ์ ์ ํ๋ก์ฐ
+
+
+
+
+[** Firma ๋งํฌ ์ฐ๊ฒฐ](https://www.figma.com/file/hYVTH99DZpDE7XYoRqB8jt/userflow?type=whiteboard&t=86t69VdYqx2Rkdtp-1)
+
diff --git a/src/common/tag/RecoilTag.tsx b/src/common/tag/RecoilTag.tsx
index 503d65d..dd8ed51 100644
--- a/src/common/tag/RecoilTag.tsx
+++ b/src/common/tag/RecoilTag.tsx
@@ -65,8 +65,8 @@ const RecoilTag = ({
diff --git a/src/components/comment/Comment.tsx b/src/components/comment/Comment.tsx
index f850b40..c5bc1f2 100644
--- a/src/components/comment/Comment.tsx
+++ b/src/components/comment/Comment.tsx
@@ -43,6 +43,7 @@ const Comment = () => {
const handleHideComment = (commentId: number) => {
setIsHide(!isHide);
setShowComment(commentId);
+ // console.log(`comment ${commentId}`);
};
const getComments = async () => {
@@ -92,6 +93,7 @@ const Comment = () => {
isHide={isHide}
setIsHide={() => handleHideComment(comment.commentId)}
type={"origin"}
+ showComment={showComment}
/>
{isHide &&
comment.children !== null &&
@@ -102,7 +104,11 @@ const Comment = () => {
className="flex flex-row justify-between px-2 ml-10 "
>
-
+
))
: null}
diff --git a/src/components/comment/CommentItem.tsx b/src/components/comment/CommentItem.tsx
index 1a05683..ba032cd 100644
--- a/src/components/comment/CommentItem.tsx
+++ b/src/components/comment/CommentItem.tsx
@@ -11,21 +11,32 @@ interface CommentItems {
datas: CommentTypes;
isHide?: boolean;
setIsHide?: () => void;
+ showComment: number | null;
type: "origin" | "child";
}
-const CommentItem = ({ datas, isHide, setIsHide, type }: CommentItems) => {
+const CommentItem = ({
+ datas,
+ isHide,
+ setIsHide,
+ type,
+ showComment,
+}: CommentItems) => {
const [isEdit, setIsEdit] = useState(false);
const [is2CHide, setIs2CHide] = useState(false);
const [editCommitId, setEditCommentId] = useState(null);
+ // const [reHcommentId, setReHcommentId] = useState(null);
const MEMBER_ID = window.localStorage.getItem("memberId"); //์์
- //console.log(datas);
+ // console.log(datas);
const formattedDate = useFormatDate(datas.createdAt);
const handle2CHide = (commentId: number) => {
setEditCommentId(commentId);
setIs2CHide(!is2CHide);
};
+ // const handleReCHide = (reCommentId: number) => {
+ // setReHcommentId(reCommentId)
+ // }
//css
const bgClass =
@@ -87,9 +98,11 @@ const CommentItem = ({ datas, isHide, setIsHide, type }: CommentItems) => {
{datas.children !== null && datas.children.length !== 0 ? (
void}
+ setIsHide={setIsHide as () => void}
+ showComment={showComment}
isLength={datas.children.length}
key={`comment-showComment-${datas.commentId}`}
+ curId={datas.commentId}
/>
) : (
<>>
diff --git a/src/components/comment/HideComment.tsx b/src/components/comment/HideComment.tsx
index be4ba98..2b1b1e1 100644
--- a/src/components/comment/HideComment.tsx
+++ b/src/components/comment/HideComment.tsx
@@ -3,31 +3,39 @@ import ArrowUp from "@/assets/svg/ArrowUp";
export interface hideTypes {
isHide: boolean;
- onClick: () => void;
+ setIsHide: () => void;
+ showComment: number | null;
isLength?: null | number;
+ curId: number | null;
}
-const HideComment = ({ isHide, onClick, isLength }: hideTypes) => {
+const HideComment = ({
+ isHide,
+ setIsHide,
+ isLength,
+ showComment,
+ curId,
+}: hideTypes) => {
+ // console.log(`HideComment ${curId}`);
+
const textStyle =
"text-sm text-ETC_COLOR hover:font-semibold cursor-pointer flex flex-row items-center";
- if (isHide === true) {
- return (
-
- );
- }
-
- if (isHide === false) {
- return (
-
- );
- }
+ return (
+
+ );
};
export default HideComment;
diff --git a/src/components/header/Header.tsx b/src/components/header/Header.tsx
index b195a83..e771b53 100644
--- a/src/components/header/Header.tsx
+++ b/src/components/header/Header.tsx
@@ -50,9 +50,10 @@ const Header = () => {
//๋ก๊ทธ์์ ํด๋ฆญ ํธ๋ค
const handleLogOut = () => {
- // localStorage.removeItem("access_token");
+ localStorage.removeItem("access_token");
+ localStorage.removeItem("memberId");
// localStorage.removeItem("");
- localStorage.clear();
+ // localStorage.clear();
setIsLogin({ loginState: false });
setIsNotifiOpen(false);
window.location.href = "/";