Skip to content

Commit

Permalink
Merge pull request #495 from sayyyho/dev
Browse files Browse the repository at this point in the history
Test: 로딩 All 등록 및 중복 처리 테스트
  • Loading branch information
sayyyho authored Aug 6, 2024
2 parents 604c9f0 + 676d213 commit 7c4e43c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/common/ErorrAlert/ErrorAlert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ModalContainer = styled.div`
}
`;

export const ErrorAlert = ({ show, onClose }) => (
export const ErrorAlert = ({ show }) => (
<CSSTransition in={show} timeout={500} classNames="modal" unmountOnExit>
<ModalLayout>
<ModalContainer state={show ? "entering" : "exiting"}>
Expand Down
5 changes: 0 additions & 5 deletions src/pages/TestPage/Test.jsx

This file was deleted.

5 changes: 3 additions & 2 deletions src/pages/ThemePage/ThemePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Modal from "../../components/Modal/Modal";
import DateRangeCalendar from "../../components/DateRangeCalendar/DateRangeCalendar";
import { CheckUp } from "../../components/CheckUp/CheckUp";
import { useRecoilState, useSetRecoilState } from "recoil";
import { Loading } from "../Loading/Loading";
import {
routineStart,
routineEnd,
Expand Down Expand Up @@ -51,7 +52,7 @@ const ThemePage = () => {
}, [startDay, endDay]);

if (!themeData) {
return <p>데이터를 불러오는 중입니다...</p>; // theme이 null인 경우 처리
return <Loading />; // theme이 null인 경우 처리
}

const formatDate = (date) => {
Expand Down Expand Up @@ -85,7 +86,7 @@ const ThemePage = () => {
/>
))
) : (
<p>데이터를 불러오는 중입니다...</p>
<Loading />
)}
</S.RoutineBoxContainer>
{isCalendarVisible && (
Expand Down
5 changes: 0 additions & 5 deletions src/router.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import SearchPage from "./pages/SearchPage/SearchPage";
import MyPage from "./pages/MyPage/MyPage";
import SubCategoryPage from "./pages/SubCategoryPage/SubCategoryPage";
import { SearchResultP } from "./pages/SearchPage/SearchResultP";
import { Test } from "./pages/TestPage/Test";
import { NotFound } from "./pages/NotFound/NotFount";
import { AgreePage } from "./pages/AgreePage/AgreePage";
import { Loading } from "./pages/Loading/Loading";
Expand Down Expand Up @@ -86,10 +85,6 @@ const router = createBrowserRouter([
element: <SharePage />,
loader: loader,
},
{
path: "/test",
element: <Test />,
},
{
path: "/search/data/:data",
element: <SearchResultP />,
Expand Down

0 comments on commit 7c4e43c

Please sign in to comment.