260623_06_ENH: 로딩 인디케이터 수정

This commit is contained in:
2026-06-23 14:35:34 +09:00
parent 2dc5a00332
commit fd6cfb7f20
2 changed files with 1 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ export function LoadingOverlay({ force = false }: { force?: boolean }) {
return (
<div className="fixed inset-0 z-[9999] bg-black/60 flex items-center justify-center">
{/* 심플 로딩 인디케이터 */}
<div className="h-12 w-12 rounded-full border-4 border-gray-400 border-t-white animate-spin" />
<div className="h-20 w-20 rounded-full border-10 !border-white/45 !border-t-white animate-spin" />
</div>
);
}

View File

@@ -1,24 +0,0 @@
"use client";
import { useCallback } from "react";
import { useAtom } from "jotai";
import { layoutSelectedMenuAtom } from "@/store/jotai/layout";
export const useLayoutSelectedMenu = () => {
const [selectedMenusByTopMenu, setSelectedMenusByTopMenu] = useAtom(layoutSelectedMenuAtom);
const selectMenu = useCallback(
(topMenuId: string, menuId: string) => {
setSelectedMenusByTopMenu((prev) => ({
...prev,
[topMenuId]: menuId,
}));
},
[setSelectedMenusByTopMenu],
);
return {
selectedMenusByTopMenu,
selectMenu,
};
};