Skip to content

Commit 59f0aa9

Browse files
committed
refact: 수정사항 반영
1 parent 91996cb commit 59f0aa9

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/pages/home/ui/MainPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ProfileCircle from '../../../../design-system/ui/Profile';
1515
import useEventList from '../../../entities/event/hook/useEventListHook';
1616
import FloatingButton from '../../../shared/ui/FloatingButton';
1717
import manualIcon from '../../../../public/assets/menu/help.svg';
18+
import { USER_MANUAL_URL } from '../../../shared/types/menuType';
1819
const MainPage = () => {
1920
const navigate = useNavigate();
2021
const { isModalOpen, openModal, closeModal, isLoggedIn, name } = useAuthStore();
@@ -85,8 +86,8 @@ const MainPage = () => {
8586
>
8687
전체 이벤트 보러가기 <span className="ml-1.5">&gt;</span>
8788
</button>
88-
<div className="sticky bottom-6 w-full flex justify-end px-6 z-50">
89-
<FloatingButton ariaLabel="사용법" onClick={() => window.open('https://namu00.notion.site/209eaffb9b0e803d9bc3da1fa0be5496', '_blank')} className='bottom-24'>
89+
<div className="sticky w-full flex justify-end px-6 z-50">
90+
<FloatingButton ariaLabel="사용법" onClick={() => window.open(USER_MANUAL_URL, '_blank')} className='bottom-24'>
9091
<img src={manualIcon} alt="사용법" className="w-full h-full" />
9192
</FloatingButton>
9293
</div>

src/pages/menu/ui/myHost/MyHostPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import TertiaryButton from '../../../../../design-system/ui/buttons/TertiaryButt
99
import useAuthStore from '../../../../app/provider/authStore';
1010
import FloatingButton from '../../../../shared/ui/FloatingButton';
1111
import manualIcon from '../../../../../public/assets/menu/help.svg';
12+
import { HOST_MANUAL_URL } from '../../../../shared/types/menuType';
1213

1314
const MyHostPage = () => {
1415
const [selectedHostId, setSelectedHostId] = useState<number | null>(null);
@@ -80,8 +81,8 @@ const MyHostPage = () => {
8081
/>
8182
))}
8283
</div>
83-
<div className="sticky bottom-6 w-full flex justify-end px-6 z-50">
84-
<FloatingButton ariaLabel="사용법" onClick={() => window.open('https://namu00.notion.site/209eaffb9b0e80caa0dae68c1e12ed0f', '_blank')} className='bottom-6'>
84+
<div className="sticky w-full flex justify-end px-6 z-50">
85+
<FloatingButton ariaLabel="사용법" onClick={() => window.open(HOST_MANUAL_URL, '_blank')} className='bottom-8'>
8586
<img src={manualIcon} alt="사용법" className="w-full h-full" />
8687
</FloatingButton>
8788
</div>

src/shared/types/menuType.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import useAuthStore from '../../app/provider/authStore';
1212
import Manual from '../../../public/assets/menu/manual.svg';
1313
import SelectedManual from '../../../public/assets/menu/SelectedManual.svg';
1414

15+
export const USER_MANUAL_URL = 'https://namu00.notion.site/209eaffb9b0e803d9bc3da1fa0be5496';
16+
export const HOST_MANUAL_URL = 'https://namu00.notion.site/209eaffb9b0e80caa0dae68c1e12ed0f';
17+
18+
1519
export interface buttonData {
1620
iconPath: string; // 아이콘 경로
1721
hoverIconPath: string; // 호버 아이콘 경로
@@ -28,7 +32,7 @@ export const getButtonData = (): buttonData[] => {
2832
{ iconPath: Host, hoverIconPath: SelectedHost, label: '내 호스트', path: '/menu/myHost' },
2933
{ iconPath: Event, hoverIconPath: SelectedEvent, label: '이벤트 주최하기', path: '/event-creation' },
3034
{ iconPath: Setting, hoverIconPath: SelectedSetting, label: '마이페이지', path: '/menu/myPage' },
31-
{ iconPath: Manual, hoverIconPath: SelectedManual, label: '사용법', path: '/menu/myTicket', url: 'https://namu00.notion.site/209eaffb9b0e803d9bc3da1fa0be5496' },
35+
{ iconPath: Manual, hoverIconPath: SelectedManual, label: '사용법', path: '/menu/myTicket', url: USER_MANUAL_URL },
3236
];
3337

3438
if (isLoggedIn) {

0 commit comments

Comments
 (0)