diff --git a/src/components/Plan/PlanSectionTop.tsx b/src/components/Plan/PlanSectionTop.tsx
index 4945fa17..162d04db 100644
--- a/src/components/Plan/PlanSectionTop.tsx
+++ b/src/components/Plan/PlanSectionTop.tsx
@@ -84,6 +84,7 @@ const PlanSectionTop = () => {
}
}
}, [isEnter]);
+
return (
{!isMobile && (
diff --git a/src/pages/share/share.page.tsx b/src/pages/share/share.page.tsx
index 7d6d5887..435dca4b 100644
--- a/src/pages/share/share.page.tsx
+++ b/src/pages/share/share.page.tsx
@@ -1,13 +1,21 @@
import { getTripsjoin } from '@api/trips';
import CopyBox from '@components/Share/CopyBox';
import { BackBox } from '@components/common';
+import { useGetTrips } from '@hooks/useGetTrips';
+import { isFirstLoadState, tapState } from '@recoil/plan';
+import { visitDateState } from '@recoil/socket';
import { useEffect, useState } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
+import { useSetRecoilState } from 'recoil';
const Share = () => {
const navigate = useNavigate();
const [joinCode, setJoinCode] = useState(null);
const { id: tripId } = useParams();
+ const setVisitDate = useSetRecoilState(visitDateState);
+ const setIsFirstLoad = useSetRecoilState(isFirstLoadState);
+ const setTapState = useSetRecoilState(tapState);
+ const { startDate } = useGetTrips();
useEffect(() => {
const getTripCode = async () => {
@@ -34,6 +42,12 @@ const Share = () => {
showBack
backHandler={() => {
navigate(-1);
+
+ if (startDate) {
+ setVisitDate({ visitDate: startDate });
+ }
+ setIsFirstLoad(true);
+ setTapState('0');
}}>
공유하기