로딩바 className으로 z-index변경할수 있도록 수정
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
import { LoadingWithAnimation } from '@common/components/ui/loading';
|
||||
import React from 'react';
|
||||
import { LoadingWithAnimation } from "@common/components/ui/loading";
|
||||
import React from "react";
|
||||
|
||||
interface LoadingOverlayProps {
|
||||
isLoading: boolean;
|
||||
customZindex?: string;
|
||||
}
|
||||
|
||||
const LoadingOverlay: React.FC<LoadingOverlayProps> = ({ isLoading }) => {
|
||||
const LoadingOverlay: React.FC<LoadingOverlayProps> = ({
|
||||
isLoading,
|
||||
customZindex,
|
||||
}) => {
|
||||
if (!isLoading) return null;
|
||||
|
||||
return (
|
||||
<div className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50">
|
||||
<div className="relative w-16 h-16">
|
||||
<div
|
||||
className={`fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 ${customZindex || "z-50"}`}
|
||||
>
|
||||
<div className="relative h-16 w-16">
|
||||
<LoadingWithAnimation color="primary" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LoadingOverlay;
|
||||
export default LoadingOverlay;
|
||||
|
||||
Reference in New Issue
Block a user