UPDATE: Add LoadingScreen component to maintain consistency
This commit is contained in:
17
frontend/src/components/Layout/LoadingScreen.tsx
Normal file
17
frontend/src/components/Layout/LoadingScreen.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
|
||||
interface LoadingScreenProps {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const LoadingScreen: React.FC<LoadingScreenProps> = ({
|
||||
children = "Loading...",
|
||||
}) => {
|
||||
return (
|
||||
<div className="h-screen w-screen flex items-center justify-center text-white">
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LoadingScreen;
|
||||
Reference in New Issue
Block a user