From becfb05e4797c3a0c0e7c4674ba8ba8f1b8a5eb8 Mon Sep 17 00:00:00 2001 From: Yeongjun Kim Date: Mon, 4 Dec 2023 01:17:16 +0900 Subject: [PATCH 1/4] =?UTF-8?q?chore:=20#261=20-=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/LinkList/LinkList.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/common/LinkList/LinkList.tsx b/src/components/common/LinkList/LinkList.tsx index 296c58f2..a7e07ac4 100644 --- a/src/components/common/LinkList/LinkList.tsx +++ b/src/components/common/LinkList/LinkList.tsx @@ -116,13 +116,6 @@ const LinkList = ({ tagId, }) - const isValidUrl = () => { - const url = getValues('url') - console.log(url) - var urlPattern = /^(https?:\/\/|file:\/\/)/ - return urlPattern.test(url) - } - return isLinksLoading ? ( ) : ( From 85b2cdddccf414714fbf639bb2e4e00e41e279d3 Mon Sep 17 00:00:00 2001 From: Yeongjun Kim Date: Mon, 4 Dec 2023 01:57:15 +0900 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20#261=20-=20=EB=B9=84=EA=B3=B5?= =?UTF-8?q?=EA=B0=9C=20=EC=8A=A4=ED=8E=98=EC=9D=B4=EC=8A=A4=EC=97=90=20?= =?UTF-8?q?=EC=9E=90=EB=AC=BC=EC=87=A0=20=EC=95=84=EC=9D=B4=EC=BD=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(routes)/space/[spaceId]/page.tsx | 1 + src/components/common/Space/Space.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/(routes)/space/[spaceId]/page.tsx b/src/app/(routes)/space/[spaceId]/page.tsx index 2b06da16..226c24aa 100644 --- a/src/app/(routes)/space/[spaceId]/page.tsx +++ b/src/app/(routes)/space/[spaceId]/page.tsx @@ -52,6 +52,7 @@ const SpacePage = ({ params }: { params: { spaceId: number } }) => { favorite={space.favoriteCount} hasFavorite={space.hasFavorite} hasScrap={space.hasScrap} + isVisible={space.isVisible} /> )} {tabList.length > MIN_TAB_NUMBER && ( diff --git a/src/components/common/Space/Space.tsx b/src/components/common/Space/Space.tsx index 10538c9d..7137625d 100644 --- a/src/components/common/Space/Space.tsx +++ b/src/components/common/Space/Space.tsx @@ -2,7 +2,10 @@ import { useModal } from '@/hooks' import { useCurrentUser } from '@/hooks/useCurrentUser' -import { StarIcon as StarIconOutline } from '@heroicons/react/24/outline' +import { + LockClosedIcon, + StarIcon as StarIconOutline, +} from '@heroicons/react/24/outline' import { InboxArrowDownIcon } from '@heroicons/react/24/solid' import { StarIcon as StarIconSolid } from '@heroicons/react/24/solid' import Image from 'next/image' @@ -27,6 +30,7 @@ interface SpaceProps { favorite: number hasFavorite?: boolean hasScrap?: boolean + isVisible?: boolean } const Space = ({ @@ -41,6 +45,7 @@ const Space = ({ favorite, hasFavorite, hasScrap, + isVisible, }: SpaceProps) => { const router = useRouter() const { isLoggedIn } = useCurrentUser() @@ -147,8 +152,9 @@ const Space = ({
{description}
-
+
+ {!isVisible && }
From 58a7ca0b016a359d0d0e9b6395ee547f3830ce27 Mon Sep 17 00:00:00 2001 From: Yeongjun Kim Date: Mon, 4 Dec 2023 02:08:53 +0900 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20#261=20-=20=EB=A7=81=ED=81=AC=20?= =?UTF-8?q?=EC=A0=9C=EB=AA=A9=EC=9D=98=20=EC=B5=9C=EB=8C=80=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EA=B8=80=EC=9E=90=20=EC=88=98=EB=A5=BC=20100?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/LinkItem/LinkItem.tsx | 2 +- src/components/common/LinkList/LinkList.tsx | 2 +- src/components/common/LinkList/constants/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/common/LinkItem/LinkItem.tsx b/src/components/common/LinkItem/LinkItem.tsx index e3d045cf..efdd5fc2 100644 --- a/src/components/common/LinkItem/LinkItem.tsx +++ b/src/components/common/LinkItem/LinkItem.tsx @@ -331,7 +331,7 @@ const LinkItem = ({ message: LINK_FORM_VALIDATION.TITLE_LENGTH, }, maxLength: { - value: 50, + value: 100, message: LINK_FORM_VALIDATION.TITLE_LENGTH, }, required: { diff --git a/src/components/common/LinkList/LinkList.tsx b/src/components/common/LinkList/LinkList.tsx index a7e07ac4..7c79720b 100644 --- a/src/components/common/LinkList/LinkList.tsx +++ b/src/components/common/LinkList/LinkList.tsx @@ -233,7 +233,7 @@ const LinkList = ({ message: LINK_FORM_VALIDATION.TITLE_LENGTH, }, maxLength: { - value: 50, + value: 100, message: LINK_FORM_VALIDATION.TITLE_LENGTH, }, required: { diff --git a/src/components/common/LinkList/constants/index.ts b/src/components/common/LinkList/constants/index.ts index ebb99f0b..7f7e5bbd 100644 --- a/src/components/common/LinkList/constants/index.ts +++ b/src/components/common/LinkList/constants/index.ts @@ -19,7 +19,7 @@ export const LINK_FORM_VALIDATION = { URL_INVALID_FORM: '유효한 URL 형식이 아닙니다.', URL_NOT_BUTTTON: 'URL 입력 후 확인 버튼을 눌러주세요.', NONE_TITLE: '제목을 입력해 주세요.', - TITLE_LENGTH: '제목은 2자 이상 50자 이하로 작성해야 합니다.', + TITLE_LENGTH: '제목은 2자 이상 100자 이하로 작성해야 합니다.', TAG_LENGTH: '태그는 10자 이하로 작성해야 합니다.', } From cdd2d5a41d137d029850e37805c0217d045a1fa3 Mon Sep 17 00:00:00 2001 From: Yeongjun Kim Date: Mon, 4 Dec 2023 02:18:43 +0900 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20#261=20-=20AvatarGroup=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=97=AC=EB=B0=B1=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/AvatarGroup/constants/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/AvatarGroup/constants/index.ts b/src/components/common/AvatarGroup/constants/index.ts index adf2d725..aebfd469 100644 --- a/src/components/common/AvatarGroup/constants/index.ts +++ b/src/components/common/AvatarGroup/constants/index.ts @@ -1,4 +1,4 @@ -export const MARGIN_LEFT_DIVIDE = 12 +export const MARGIN_LEFT_DIVIDE = 13 export const PADDING_LEFT_DIVIDE = 7 export const DEFAULT_SIZE = 60 export const DEFAULT_LIMIT = 3