Skip to content

Commit 1b83af7

Browse files
authored
[Fix] 튜토리얼에서 불필요하게 생성되는 중복 예시 모달 제거 (#374)
* fix : 튜토리얼 페이지에서 띄워지는 가짜 투표 리스트 모달 제거 * refactor : 튜토리얼 페이지에서 사용되는 튜토리얼 전용 input 제거 후 배틀 페이지 input 사용으로 대체 - 중복 기능을 하는 컴포넌트 사용하는 것으로 파악 되어 제거했습니다 * refactor : 불필요게 중복 사용되는 튜토리얼 상황판 UI 제거 * Refactor : 튜토리얼 관련 폴더 구조 재구성 - pages/tutorial -> pages/tutorialPage로 변경 - tutorialBattlePage -> pages/tutorialPage/battle로 이동 - tutorialTeamSelectPage -> pages/tutorialPage/teamSelect로 이동 - 튜토리얼 컴포넌트를 tutorialPage/components로 통합
1 parent 2368058 commit 1b83af7

File tree

19 files changed

+20
-153
lines changed

19 files changed

+20
-153
lines changed

frontend/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import BattleResultPage from './pages/battleResultPage';
1010
import LoginPage from './pages/loginPage';
1111
import NicknamePage from './pages/nicknamePage';
1212
import EntryPage from './pages/entryPage';
13-
import TutorialTeamSelectPage from './pages/tutorialTeamSelectPage';
13+
import TutorialTeamSelectPage from './pages/tutorialPage/teamSelect';
1414
import ErrorPage from './pages/errorPage';
15-
import TutorialBattlePage from './pages/tutorialBattlePage';
16-
import { TUTORIAL_BATTLE_INFO } from './pages/tutorial/const/tutorialBattle';
15+
import TutorialBattlePage from './pages/tutorialPage/battle';
16+
import { TUTORIAL_BATTLE_INFO } from './pages/tutorialPage/const/tutorialBattle';
1717
import { ToastContainer } from './commons/components/toast/ToastContainer';
1818
import { useAuthStore } from './commons/stores/authStore';
1919
import './App.css';

frontend/src/pages/battlePage/components/tutorial/TutorialDiscussionInput.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

frontend/src/pages/battlePage/components/tutorial/TutorialProgressBoard.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

frontend/src/pages/battlePage/components/tutorial/TutorialVoteExample.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

frontend/src/pages/tutorialBattlePage/components/PracticeGuideCard.tsx renamed to frontend/src/pages/tutorialPage/battle/components/PracticeGuideCard.tsx

File renamed without changes.

frontend/src/pages/tutorialBattlePage/hooks/useAutoExitOnDone.ts renamed to frontend/src/pages/tutorialPage/battle/hooks/useAutoExitOnDone.ts

File renamed without changes.

frontend/src/pages/tutorialBattlePage/hooks/usePracticeFlow.ts renamed to frontend/src/pages/tutorialPage/battle/hooks/usePracticeFlow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { BattlePhase } from '@/commons/types/battle';
33
import { useBattleStore, selectBattleProgress } from '@/pages/battlePage/stores/battleStore';
44
import { useAuthStore } from '@/commons/stores/authStore';
55
import { soundManager } from '@/commons/utils/soundManager';
6-
import { TUTORIAL_ATTACK_MESSAGES, TUTORIAL_BATTLE_ID } from '@/pages/tutorial/const/tutorialBattle';
6+
import { TUTORIAL_ATTACK_MESSAGES, TUTORIAL_BATTLE_ID } from '@/pages/tutorialPage/const/tutorialBattle';
77

88
const ATTACK_DISCUSSIONS = [
99
{

frontend/src/pages/tutorialBattlePage/hooks/useTutorialBattleSetup.ts renamed to frontend/src/pages/tutorialPage/battle/hooks/useTutorialBattleSetup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import { useEffect } from 'react';
22
import type { BattleInfo } from '@/commons/types/battle';
33
import { useBattleStore } from '@/pages/battlePage/stores/battleStore';
44
import { useAuthStore } from '@/commons/stores/authStore';
5-
import { createMockSocket } from '@/pages/tutorial/utils/mockSocket';
5+
import { createMockSocket } from '@/pages/tutorialPage/utils/mockSocket';
66
import {
77
TUTORIAL_BATTLE_ID,
88
TUTORIAL_BATTLE_PROGRESS,
99
TUTORIAL_TEAM_COUNTS,
1010
TUTORIAL_TEAM_CHATS,
1111
TUTORIAL_ALL_CHATS,
1212
TUTORIAL_USER
13-
} from '@/pages/tutorial/const/tutorialBattle';
14-
import { MOCK_DISCUSSIONS } from '@/pages/battlePage/components/tutorial/const/tutorialSteps';
13+
} from '@/pages/tutorialPage/const/tutorialBattle';
14+
import { MOCK_DISCUSSIONS } from '@/pages/tutorialPage/components/const/tutorialSteps';
1515

1616
interface TutorialBattleSetupOptions {
1717
battleInfo: BattleInfo;

frontend/src/pages/tutorialBattlePage/hooks/useTutorialSounds.ts renamed to frontend/src/pages/tutorialPage/battle/hooks/useTutorialSounds.ts

File renamed without changes.

frontend/src/pages/tutorialBattlePage/hooks/useTutorialUI.ts renamed to frontend/src/pages/tutorialPage/battle/hooks/useTutorialUI.ts

File renamed without changes.

0 commit comments

Comments
 (0)