Skip to content

Commit 7c364be

Browse files
committed
chore: eslint를 동작하도록 수정하고, 전체 적용
1 parent 654fb5f commit 7c364be

72 files changed

Lines changed: 2817 additions & 1565 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
import * as React from "react";
2-
import { Navigate } from 'react-router-dom';
3-
1+
import * as Common from "@frontend/common";
42
import { CircularProgress } from "@mui/material";
53
import { ErrorBoundary, Suspense } from "@suspensive/react";
4+
import * as React from "react";
5+
import { Navigate } from "react-router-dom";
66

7-
import * as Common from "@frontend/common";
8-
9-
import { addSnackbar } from '../../utils/snackbar';
7+
import { addSnackbar } from "../../utils/snackbar";
108

11-
export const BackendAdminSignInGuard: React.FC<{ children: React.ReactNode }> = ErrorBoundary.with(
12-
{ fallback: <>로그인 정보를 불러오는 중 문제가 발생했습니다.</> },
13-
Suspense.with(
14-
{ fallback: <CircularProgress /> },
15-
({ children }) => {
16-
const backendAdminAPIClient = Common.Hooks.BackendAdminAPI.useBackendAdminClient();
17-
const { data } = Common.Hooks.BackendAdminAPI.useSignedInUserQuery(backendAdminAPIClient);
9+
export const BackendAdminSignInGuard: React.FC<{ children: React.ReactNode }> =
10+
ErrorBoundary.with(
11+
{ fallback: <>로그인 정보를 불러오는 중 문제가 발생했습니다.</> },
12+
Suspense.with({ fallback: <CircularProgress /> }, ({ children }) => {
13+
const backendAdminAPIClient =
14+
Common.Hooks.BackendAdminAPI.useBackendAdminClient();
15+
const { data } = Common.Hooks.BackendAdminAPI.useSignedInUserQuery(
16+
backendAdminAPIClient
17+
);
1818

1919
if (!data) {
2020
addSnackbar("로그인 후 이용해주세요.", "error");
2121
return <Navigate to="/account/sign-in" replace />;
2222
}
2323
return children;
24-
}
25-
)
26-
)
24+
})
25+
);

0 commit comments

Comments
 (0)