Skip to content

Commit

Permalink
Merge pull request #307 from depromeet/feat/#306
Browse files Browse the repository at this point in the history
바텀싯 상세에서 뒤로가기 누르면 내려가도록 수정
  • Loading branch information
sjoleee authored Feb 15, 2024
2 parents 7cd24e3 + fd0e793 commit fd487e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/main/StoreDetailSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { useGetReport } from '@hooks/api/useGetReport';
import useGetStore from '@hooks/api/useGetStore';
import useObserver from '@hooks/useObserver';
import cn from '@utils/cn';
import switchUrl from '@utils/switchUrl';

export default function StoreDetailSection({
storeId,
Expand All @@ -42,7 +43,11 @@ export default function StoreDetailSection({
onIntersect,
});

const handleBackButtonClick = () => {};
const handleBackButtonClick = () => {
const url = new URL(window.location.href);
url.searchParams.set('bottomSheetStatus', 'show');
switchUrl(url);
};

return (
<div className="relative">
Expand Down

0 comments on commit fd487e0

Please sign in to comment.