Updated loading states and error states accross app
This commit is contained in:
14
src/components/UI/Loading.tsx
Normal file
14
src/components/UI/Loading.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
type LoadingProps = {
|
||||
message?: string;
|
||||
};
|
||||
|
||||
const Loading = ({ message }: LoadingProps) => {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center py-6">
|
||||
<div className="animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-gray-500 mb-2"></div>
|
||||
{message && <p className="text-lg text-gray-500">{message}</p>}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Loading;
|
||||
Reference in New Issue
Block a user