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:
AmirReza Jamali
2026-04-13 08:07:43 +03:30
parent 44c87e094d
commit 50db71843b
17 changed files with 46 additions and 32 deletions
+23
View File
@@ -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;