Skip to content

Commit 75155df

Browse files
committed
#126 [RENAME] Error.tsx 이름 수정
1 parent 0e9eb1d commit 75155df

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/layouts/ProtectedLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { QueryErrorResetBoundary } from '@tanstack/react-query';
55
import { Suspense } from 'react';
66
import { ErrorBoundary } from 'react-error-boundary';
77
import Loading from '../pages/Loading.tsx';
8-
import Error from '../pages/Error.tsx';
8+
import Server500Error from '../pages/Server500Error.tsx';
99

1010
const ProtectedLayout = () => {
1111
const location = useLocation();
1212
const isSettingRoute = location.pathname.startsWith('/workspace/setting');
1313
return (
1414
<QueryErrorResetBoundary>
1515
{({ reset }) => (
16-
<ErrorBoundary onReset={reset} FallbackComponent={Error}>
16+
<ErrorBoundary onReset={reset} FallbackComponent={Server500Error}>
1717
<Suspense fallback={<Loading />}>
1818
<div className="flex h-screen">
1919
<aside className="overflow-auto sidebar-scroll">

src/layouts/PublicLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { Outlet } from 'react-router-dom';
22
import { QueryErrorResetBoundary } from '@tanstack/react-query';
33
import { ErrorBoundary } from 'react-error-boundary';
4-
import Error from '../pages/Error.tsx';
4+
import Server500Error from '../pages/Server500Error.tsx';
55
import { Suspense } from 'react';
66
import Loading from '../pages/Loading.tsx';
77

88
const PublicLayout = () => {
99
return (
1010
<QueryErrorResetBoundary>
1111
{({ reset }) => (
12-
<ErrorBoundary onReset={reset} FallbackComponent={Error}>
12+
<ErrorBoundary onReset={reset} FallbackComponent={Server500Error}>
1313
<Suspense fallback={<Loading />}>
1414
<main className="w-full h-screen overflow-auto basic-scroll bg-gray-onboard">
1515
<div className="min-w-max min-h-screen flex flex-col items-center justify-center">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useNavigate } from 'react-router-dom';
22
import PrimaryButton from '../components/Onboarding/PrimaryButton.tsx';
33

4-
const Error = () => {
4+
const Server500Error = () => {
55
const navigate = useNavigate();
66

77
return (
@@ -30,4 +30,4 @@ const Error = () => {
3030
);
3131
};
3232

33-
export default Error;
33+
export default Server500Error;

0 commit comments

Comments
 (0)