chore: 코드 정리

This commit is contained in:
2026-07-22 14:13:38 +09:00
parent b842408f41
commit 2f6d4ebec1
2 changed files with 4 additions and 10 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ export interface SiteListResponse {
const { PROXY_HOST } = getConfig();
const BASE_URL = `${PROXY_HOST}/server`;
export const getSiteInfo = async (siteId: string) => {
export const getSiteInfo = async (siteId: string): Promise<SiteInfo> => {
const response = await fetch(
`${BASE_URL}${ENDPOINT.CMS_SERVICE.SITES}/${siteId}`,
{
@@ -66,7 +66,7 @@ export const getSiteInfo = async (siteId: string) => {
credentials: "include",
},
);
return response.json() as Promise<SiteInfo>;
return response.json();
};
export const getSiteList = async (): Promise<SiteListResponse> => {
@@ -1,4 +1,4 @@
import type { AuthService, TokenManager } from "@common/auth";
import type { AuthService } from "@common/auth";
import type { QueryClient } from "@tanstack/react-query";
import { QueryProvider } from "../../provider/query-provider";
import { PopupProvider } from "../../provider/popup-provider";
@@ -14,14 +14,11 @@ export function NoLNBLayout({
children,
queryClient,
authService,
tokenManager,
currentPath,
}: {
children: React.ReactNode;
queryClient?: QueryClient;
authService?: AuthService;
/** @deprecated authService를 사용하세요. authService가 없을 때만 Header legacy logout에 사용됩니다. */
tokenManager?: TokenManager;
currentPath?: string;
handleMenuClick?: (item: MenuItem) => void;
}) {
@@ -32,10 +29,7 @@ export function NoLNBLayout({
<HelpDialogProvider>
<SidebarProvider>
<div className="flex-1">
<Header
authService={authService}
tokenManager={authService ? undefined : tokenManager}
/>
<Header authService={authService} />
<div className="flex">
<div className="flex min-h-[calc(100vh-50px)] flex-1 flex-col overflow-auto">
<div className="flex-1">{children}</div>