Skip to content

Commit

Permalink
feat: 백버튼 클릭시 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoleee committed Feb 15, 2024
1 parent 7cd24e3 commit fd0e793
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 fd0e793

Please sign in to comment.