Skip to content

Commit

Permalink
Merge pull request #61 from dnd-side-project/hotfix/maintain-scroll
Browse files Browse the repository at this point in the history
hotfix : 닫힘 버튼
  • Loading branch information
seondal authored Sep 19, 2023
2 parents 47ab4d8 + 1f8140c commit 754ae41
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
Binary file modified public/meta/favicon.ico
Binary file not shown.
17 changes: 11 additions & 6 deletions src/app/(Sub)/detail/[id]/components/DetailHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@ import IconButton from '@/components/Button/IconButton';
import { Header } from '@/components/Header';
import { PreparingModal } from '@/components/Modal';
import { useOverlay } from '@/components/Overlay/useOverlay';
import Link from 'next/link';
import { ICON } from '@/constants/icon';
import { useRouter } from 'next/navigation';

export default function DetailHeader() {
const { open } = useOverlay();
const router = useRouter();

return (
<Header
leftNode={
<Link href={'/feed'}>
<IconButton size="large">
<Image src="/icons/close.svg" width={24} height={24} alt="back" />
</IconButton>
</Link>
<IconButton
size="large"
onClick={() => {
if (document.referrer) router.back();
else router.replace('/feed');
}}
>
<Image src="/icons/close.svg" width={24} height={24} alt="back" />
</IconButton>
}
rightNode={
<IconButton
Expand Down
15 changes: 0 additions & 15 deletions src/components/Header/CloseButton.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/constants/url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const URL = {
site: 'https://www.posepicker.site',
inquiry:
'https://docs.google.com/forms/d/e/1FAIpQLSeZuPZTXnO4rZ4k39SzXv96PWAW4gLcTYBrsRUrgRHSVV9Ldg/viewform?usp=sf_link',
inquiry: 'https://litt.ly/posepicker',
information: 'https://shineshine.notion.site/a668d9eba61f48e584df2ad3a946c313',
};

0 comments on commit 754ae41

Please sign in to comment.