Skip to content

Commit

Permalink
[FE][Fix] #376 : 흰색 배경 안나오는 거 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
effozen committed Dec 3, 2024
1 parent caa7adb commit fd29f60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 84 deletions.
7 changes: 2 additions & 5 deletions frontend/src/routes/AlertUndefinedURL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Navigate, useLocation } from 'react-router-dom';
import { useState } from 'react';
import { AlertUI } from '@/component/common/alert/Alert.tsx';

export const AlertUndefinedURL = () => {
export const AlertUndefinedURL = ({ children }: { children?: JSX.Element }) => {
const location = useLocation();
const [shouldRedirect, setShouldRedirect] = useState(false);
const [showAlert, setShowAlert] = useState(true);
Expand All @@ -24,10 +24,7 @@ export const AlertUndefinedURL = () => {
}}
/>
)}
<article className="flex h-screen w-full flex-col items-center justify-center gap-3 text-2xl">
<div>잘못된 경로입니다.</div>
<div>메인 페이지로 이동합니다.</div>
</article>
{children}
</>
);
};
37 changes: 0 additions & 37 deletions frontend/src/utils/error/ErrorBoundary.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions frontend/src/utils/error/RouterErrorHandler.tsx

This file was deleted.

0 comments on commit fd29f60

Please sign in to comment.