Skip to content

Commit

Permalink
[FE] feat: 배너 링크 삭제 (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejin-Yang authored Oct 6, 2023
1 parent 490482a commit 062ca02
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions frontend/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,26 @@
import { Heading, Link, Spacing } from '@fun-eat/design-system';
import { Heading, Spacing } from '@fun-eat/design-system';
import { useQueryErrorResetBoundary } from '@tanstack/react-query';
import { Suspense } from 'react';
import styled from 'styled-components';

import { Loading, ErrorBoundary, ErrorComponent, CategoryFoodList, CategoryStoreList } from '@/components/Common';
import { ProductRankingList, ReviewRankingList, RecipeRankingList } from '@/components/Rank';
import { IMAGE_URL } from '@/constants';
import { useGA } from '@/hooks/common';
import channelTalk from '@/service/channelTalk';

export const HomePage = () => {
const { reset } = useQueryErrorResetBoundary();
const { gaEvent } = useGA();

channelTalk.loadScript();

channelTalk.boot({
pluginKey: process.env.CHANNEL_TALK_KEY ?? '',
});

const handleBannerClick = () => {
gaEvent({ category: 'link', action: '이벤트 배너 클릭', label: '배너' });
};

return (
<>
<section>
<Link
href="https://www.instagram.com/p/CxmlqAQSK-w/?igshid=MzRlODBiNWFlZA=="
onClick={handleBannerClick}
isExternal
>
<Banner src={`${IMAGE_URL}banner.png`} width={600} height={360} alt="이벤트 배너" />
</Link>
<Banner src={`${IMAGE_URL}banner.png`} width={600} height={360} alt="이벤트 배너" />
</section>
<Spacing size={40} />
<SectionWrapper>
Expand Down

0 comments on commit 062ca02

Please sign in to comment.