260623_06_ENH: 로딩 인디케이터 수정
This commit is contained in:
@@ -11,7 +11,7 @@ export function LoadingOverlay({ force = false }: { force?: boolean }) {
|
|||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[9999] bg-black/60 flex items-center justify-center">
|
<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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -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,
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user