Skip to content

Commit

Permalink
Merge pull request #166 from jirum-alarm/chore/165/hide-keyword-alarm
Browse files Browse the repository at this point in the history
[chore] 운영 ν™˜κ²½μ—μ„œ ν‚€μ›Œλ“œ μ•Œλ¦Ό 메뉴 μˆ¨κΉ€
  • Loading branch information
tolluset authored Feb 29, 2024
2 parents df125a8 + 2e10a83 commit 7d78fe2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/mypage/components/MenuList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Alert, Description, Filter, Headset } from '@/components/common/icons';
import customerService from '@/lib/customerservice/customer-service';
import Link from '@/features/Link';
import { SVGProps, createElement } from 'react';
import { IS_VERCEL_PRD } from '@/constants/env';

const MENU_LIST: Array<{
icon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
Expand Down Expand Up @@ -34,8 +35,12 @@ const MenuList = () => {
<div className="px-5">
<div className="border-b border-gray-300 py-4">
<ul>
{MENU_LIST.map((menu, i) => (
<>
{MENU_LIST.map((menu, i) => {
if (IS_VERCEL_PRD && menu.url === '/mypage/keyword') {
return;
}

return (
<li key={i}>
<Link href={menu.url}>
<div className="flex items-center gap-3 py-3">
Expand All @@ -44,8 +49,8 @@ const MenuList = () => {
</div>
</Link>
</li>
</>
))}
);
})}
<li>
<button className="w-full">
<div className="flex items-center gap-3 py-3" onClick={handleShowChannelTalkClick}>
Expand Down

0 comments on commit 7d78fe2

Please sign in to comment.