refactor(Loading): update Loading component import paths
- Changed import paths for the Loading component from "@/app/loading" to "@/components/loading" across multiple files to maintain consistency and improve modularity. - Removed the Loading component definition from loading.tsx, simplifying the file structure.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface IProps {
|
||||
className?: string | null;
|
||||
}
|
||||
/**
|
||||
* Grows with a flex `main` parent so the spinner sits in the middle of the content area.
|
||||
* Guards: `min-h-svh flex-none`. Compact UI: `flex-none min-h-*`.
|
||||
*/
|
||||
const Loading = ({ className }: IProps) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"flex min-h-0 w-full min-w-0 flex-1 items-center justify-center",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="h-5 w-5 animate-spin rounded-full border-b-2 border-primary" />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Loading;
|
||||
Reference in New Issue
Block a user