From 57d942aba870d2f3a1961c8b4a9889f4d3b1c799 Mon Sep 17 00:00:00 2001 From: ljh0608 Date: Mon, 2 Sep 2024 17:50:52 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=83=80=EC=9E=85=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C=20=EC=97=90=EB=9F=AC=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/moleculesComponents/Header.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/common/moleculesComponents/Header.tsx b/src/components/common/moleculesComponents/Header.tsx index 808bfd5..75ee3cf 100644 --- a/src/components/common/moleculesComponents/Header.tsx +++ b/src/components/common/moleculesComponents/Header.tsx @@ -4,7 +4,7 @@ import Text from 'components/common/atomComponents/Text'; import { BackIc, ExitIc, HambergerIc, LinkIc, MainLogoIc } from 'components/Icon/icon'; import { useScheduleStepContext } from 'pages/selectSchedule/contexts/useScheduleStepContext'; import { ScheduleStepType } from 'pages/selectSchedule/types'; -import { useNavigate, useParams } from 'react-router-dom'; +import { useNavigate } from 'react-router-dom'; import useShareLink from 'src/\bhooks/useShareLink'; import styled from 'styled-components'; import { theme } from 'styles/theme'; @@ -21,9 +21,7 @@ interface HeaderProps { function Header({ position, setFunnelStep }: HeaderProps) { const { scheduleStep, setScheduleStep } = useScheduleStepContext(); - const { meetingId } = useParams(); - - const { inviteURL, handleWebShare } = useShareLink(position); + const { handleWebShare } = useShareLink(position || ''); const navigationOptions = [ {