-
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.
- Loading branch information
1 parent
26e35f6
commit 2b77c62
Showing
5 changed files
with
28 additions
and
29 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
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
17 changes: 10 additions & 7 deletions
17
...components/HamburgerMenu/Menu/Service.tsx → ...components/Menu/ExternalLinkContainer.tsx
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,32 +1,35 @@ | ||
import Link from 'next/link' | ||
import { twMerge } from 'tailwind-merge' | ||
|
||
const Menu = ({ text, linkTo }: { text: string; linkTo: string }) => ( | ||
const ExternalLink = ({ text, linkTo }: { text: string; linkTo: string }) => ( | ||
<Link className="cursor-pointer text-sm text-gray-700" href={linkTo}> | ||
{text} | ||
</Link> | ||
) | ||
|
||
const ServiceMenu = ({ | ||
const ExternalLinkContainer = ({ | ||
className = '', | ||
}: { | ||
className?: React.ComponentProps<'div'>['className'] | ||
}) => ( | ||
<div className={twMerge('flex flex-col gap-3 pl-[30px]', className)}> | ||
<Menu | ||
<ExternalLink | ||
text="POLABO 소개" | ||
linkTo="https://hwanheejung.notion.site/POLABO-39ac5a850dcb46bd83168043acea5bbc?pvs=74" | ||
/> | ||
<Menu | ||
<ExternalLink | ||
text="서비스 이용약관" | ||
linkTo="https://hwanheejung.notion.site/POLABO-292cb07b2fd74d7488aa4b684c67eb9a?pvs=74" | ||
/> | ||
<Menu | ||
<ExternalLink | ||
text="개인정보 처리방침" | ||
linkTo="https://hwanheejung.notion.site/POLABO-3c07098b731e419a92da9916c81c35f1" | ||
/> | ||
<Menu text="문의하기" linkTo="https://forms.gle/ya9HVMSJWVSKYyV77" /> | ||
<ExternalLink | ||
text="문의하기" | ||
linkTo="https://forms.gle/ya9HVMSJWVSKYyV77" | ||
/> | ||
</div> | ||
) | ||
|
||
export default ServiceMenu | ||
export default ExternalLinkContainer |
7 changes: 2 additions & 5 deletions
7
...omponents/HamburgerMenu/Menu/MainMenu.tsx → src/components/Menu/MenuLink.tsx
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,25 +1,22 @@ | ||
import Link from 'next/link' | ||
import { ReactNode } from 'react' | ||
|
||
const MainMenu = ({ | ||
const MenuLink = ({ | ||
icon, | ||
text, | ||
linkTo, | ||
onClick = () => {}, | ||
}: { | ||
icon: ReactNode | ||
text: string | ||
linkTo: string | ||
onClick?: React.ComponentProps<'a'>['onClick'] | ||
}) => ( | ||
<Link | ||
href={linkTo} | ||
className="flex cursor-pointer items-center gap-[6px] text-gray-700" | ||
onClick={onClick} | ||
> | ||
{icon} | ||
<span className="text-md font-semiBold">{text}</span> | ||
</Link> | ||
) | ||
|
||
export default MainMenu | ||
export default MenuLink |
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