Skip to content

Commit

Permalink
chore: 폴더 구조 및 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip committed Aug 27, 2024
1 parent 02b7ca2 commit 9b640d1
Show file tree
Hide file tree
Showing 30 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/components/learn/TaleLearn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import FinishScreen from "@components/common/FinishScreen";
import NextBtn from "@components/common/NextBtn";
import ProgressBar from "@components/common/progressBar/ProgressBar";
import useLearning from "@hooks/useLearning";
import ChoiceQuiz from "./ChoiceQuiz";
import EssayQuiz from "./EssayQuiz";
import SentenceQuiz from "./SentenceQuiz";
import ChoiceQuiz from "./quiz/ChoiceQuiz";
import SentenceQuiz from "./quiz/SentenceQuiz";
import {
EssayQuestions,
MultipleChoices,
QuizData,
SentenceArrangements,
} from "@type/learning";
import { QUIZ_STAGES, QuizType } from "@utils/constants/QuizStage";
import SpeakPractice from "./SpeakPractice";
import SpeakPractice from "./quiz/SpeakPractice";
import { useEffect } from "react";
import { postAnswerCount } from "@apis/learning";
import Header from "@components/common/header/Header";
import styled from "styled-components";
import EssayQuiz from "./quiz/EssayQuiz";

interface TaleLearnProps {
quizData?: QuizData;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as S from "./learn.styled";
import * as S from "../learn.styled";
import Header from "@common/header/Header";
import { useLocation, useNavigate } from "react-router-dom";
import ProgressBar from "@components/common/progressBar/ProgressBar";
Expand All @@ -8,10 +8,10 @@ import { nationElements } from "@utils/defaultData";
import { useResult } from "@hooks/useResult";
import { getLearnedHistory, getLearningLevel } from "@apis/learning";
import { useEffect, useState } from "react";
import CreateQuiz from "./CreateQuiz";
import useSelectLevel from "@hooks/useSelectLevel";
import SelectOptionList from "@common/selectOption/SelectOptionList";
import styled from "styled-components";
import CreateQuiz from "./CreateQuiz";

const PreLearningQuestion = () => {
const location = useLocation();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SelectOptionList from "@components/common/selectOption/SelectOptionList";
import * as S from "./learn.styled";
import * as S from "../learn.styled";
import { useEffect, useState } from "react";
import { ChoiceQuizProps } from "@type/learning";
import { shuffleArray } from "@utils/learnUtil";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import * as S from "./learn.styled";
import * as S from "../learn.styled";
import SelectBtn from "@components/common/selectOption/SelectBtn";
import { EssayQuizProps } from "@type/learning";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import * as S from "./learn.styled";
import * as S from "../learn.styled";
import { SentenceQuizProps } from "@type/learning";
import { shuffleArray } from "@utils/learnUtil";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SpeakPracticeProps } from "@type/learning";
import { speakText } from "@utils/speechUtil";
import * as S from "./speakPractice.styled";
import * as S from "../speakPractice.styled";

const SpeakPractice = ({ data }: { data: SpeakPracticeProps }) => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import TabBar from "@components/common/tabBar/TabBar";
import HomeHeader from "./homeHeader/HomeHeader";
import * as S from "./Home.styled";
import HomeStatus from "./homeStatus/HomeStatus";
import HomeRecentTales from "./homeRecentTales/HomeRecentTales";
import HomeStatus from "./homeStatus/HomeStatus";
import HomeHeader from "./homeHeader/HomeHeader";
// import Modal from "@components/common/modal/Modal";

const Home = () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CommonTitleWrapper,
ItemWrapper,
} from "@components/common/common.styled";
import Card from "@components/home/homeRecentTales/Card";
import Card from "@components/main/homeMain/homeRecentTales/Card";
import { LearnedProps } from "@type/card";

import { useEffect, useState } from "react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Shelf,
} from "@components/common/common.styled";
import Header from "@components/common/header/Header";
import Card from "@components/home/homeRecentTales/Card";
import Card from "@components/main/homeMain/homeRecentTales/Card";
import { LearnedProps } from "@type/card";
import { useMediaQuery } from "react-responsive";
import { useLocation } from "react-router-dom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CommonTitleWrapper,
ItemWrapper,
} from "@components/common/common.styled";
import Card from "@components/home/homeRecentTales/Card";
import Card from "@components/main/homeMain/homeRecentTales/Card";
import { UnLearnedProps } from "@type/card";

import { useEffect, useState } from "react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Shelf,
} from "@components/common/common.styled";
import Header from "@components/common/header/Header";
import Card from "@components/home/homeRecentTales/Card";
import Card from "@components/main/homeMain/homeRecentTales/Card";
import { UnLearnedProps } from "@type/card";
import { useMediaQuery } from "react-responsive";
import { useLocation } from "react-router-dom";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Home from "@components/home/Home";
import Home from "@components/main/homeMain/Home";

const HomePage = () => {
return <Home />;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/LearningPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Learn from "@components/learn/learnMain/Learn";
import Learn from "@components/main/learnMain/Learn";

const LearningPage = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PreLearningQuestionPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PreLearningQuestion from "@components/learn/PreLearningQuestion";
import PreLearningQuestion from "@components/learn/pre/PreLearningQuestion";

const PreLearningQuestionPage = () => {
return <PreLearningQuestion />;
Expand Down
8 changes: 4 additions & 4 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import CreateMainPage from "@pages/CreateMainPage";
import CreateTalePage from "@pages/CreateTalePage";
import TaleLearnPage from "@pages/TaleLearnPage";
import PreLearningQuestionPage from "@pages/PreLearningQuestionPage";
import MoreRecentTales from "@components/home/homeRecentTales/MoreRecentTales";
import MoreRecentTales from "@components/main/homeMain/homeRecentTales/MoreRecentTales";
import PrivateRoute from "@utils/PrivateRoute";
import WordMore from "@components/learn/learnMain/word/WordMore";
import UnLearnedMore from "@components/learn/learnMain/unLearned/UnLearnedMore";
import LearnedMore from "@components/learn/learnMain/learned/LearnedMore";
import WordMore from "@components/main/learnMain/word/WordMore";
import UnLearnedMore from "@components/main/learnMain/unLearned/UnLearnedMore";
import LearnedMore from "@components/main/learnMain/learned/LearnedMore";

const router = createBrowserRouter([
{
Expand Down

0 comments on commit 9b640d1

Please sign in to comment.