From 6ac953317d7f79f847092c43d8b27b773dc6a7fb Mon Sep 17 00:00:00 2001 From: seoyeon Date: Fri, 12 Apr 2024 16:05:35 +0900 Subject: [PATCH 01/14] =?UTF-8?q?Refactor:=20mock=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=EC=9D=98=20id=20=EA=B0=92=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20key=20=EA=B0=92=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constants/folderlist_mock_data.ts | 8 ++++---- modal/addLinkModal/AddLinkModal.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/constants/folderlist_mock_data.ts b/constants/folderlist_mock_data.ts index 4a68aeca17..d4f0084083 100644 --- a/constants/folderlist_mock_data.ts +++ b/constants/folderlist_mock_data.ts @@ -1,6 +1,6 @@ export const DATA = [ - {folderName: '코딩팁', linkCount: 7,}, - {folderName: '채용 사이트', linkCount: 12,}, - {folderName: '유용한 글', linkCount: 30,}, - {folderName: '나만의 장소', linkCount: 3,}, + {id: 1, folderName: '코딩팁', linkCount: 7,}, + {id: 2, folderName: '채용 사이트', linkCount: 12,}, + {id: 3, folderName: '유용한 글', linkCount: 30,}, + {id: 4, folderName: '나만의 장소', linkCount: 3,}, ] \ No newline at end of file diff --git a/modal/addLinkModal/AddLinkModal.tsx b/modal/addLinkModal/AddLinkModal.tsx index a26f3a1b57..838a4b3467 100644 --- a/modal/addLinkModal/AddLinkModal.tsx +++ b/modal/addLinkModal/AddLinkModal.tsx @@ -28,7 +28,7 @@ function AddLinkModal({ isOpenModal, closeModal }: ModalBaseProps) { <> diff --git a/components/Footer.tsx b/components/Footer.tsx index cb102ee0e7..fcf3b0f48b 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,7 +1,7 @@ -import facebook from '@/public/images/facebook.svg'; -import twitter from '@/public/images/twitter.svg'; -import youtube from '@/public/images/youtube.svg'; -import instagram from '@/public/images/instagram.svg'; +import Facebook from '@/public/images/facebook.svg'; +import Twitter from '@/public/images/twitter.svg'; +import Youtube from '@/public/images/youtube.svg'; +import Instagram from '@/public/images/instagram.svg'; import styles from '@/styles/Footer.module.css'; import Link from 'next/link'; import Image from 'next/image'; @@ -17,16 +17,16 @@ function Footer() {
- facebook + - twitter + - youtube + - instagram +
diff --git a/components/LinkAdd.tsx b/components/LinkAdd.tsx index ff8da034ea..db04047b35 100644 --- a/components/LinkAdd.tsx +++ b/components/LinkAdd.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from 'react'; import styles from '@/styles/LinkAdd.module.css'; import AddLinkModal from '@/modal/addLinkModal/AddLinkModal'; -import LinkIcon from './AddLinkIcon'; +import LinkIcon from '@/public/images/Icon_link.svg'; function LinkAdd() { const [isAddLinkModalOpen, setIsAddLinkModalOpen] = useState(false); diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index c89c6b00a2..cadd884f1f 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -2,13 +2,11 @@ import { MouseEvent, useState } from 'react'; import { LinkCardData } from '@/types/type'; import formatDate from '@/utils/formatDate'; import diffTime from '@/utils/diffTime'; -import star from '@/public/images/Icon_star.svg'; -import kebab from '@/public/images/Icon_kebab.svg' -import noImg from '@/public/images/noImg.svg'; -import styles from '@/styles/LinkCard.module.css'; import Popover from './Popover'; -import Image from 'next/image'; import Link from 'next/link'; +import Star from '@/public/images/Icon_star.svg'; +import Kebab from '@/public/images/Icon_kebab.svg' +import styles from '@/styles/LinkCard.module.css'; interface Props { @@ -26,14 +24,14 @@ function LinkCard({item: {url, id, imageSource, createdAt, description}}: Props) return (
- star +

{diffTime(createdAt)}

diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 651e2f09e6..d6e6ade848 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,4 +1,4 @@ -import linkbraryLogo from '@/public/images/logo.svg'; +import LinkbraryLogo from '@/public/images/logo.svg'; import styles from '@/styles/Navbar.module.css'; import Image from 'next/image'; import Link from 'next/link'; @@ -15,7 +15,9 @@ interface Props { function NavigationBar({ className, profileData, isLoginStatus }: Props) { return (