mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Styling
This commit is contained in:
22
ui/v2.5/src/components/Shared/LoadingIndicator.tsx
Normal file
22
ui/v2.5/src/components/Shared/LoadingIndicator.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
import { Spinner } from 'react-bootstrap';
|
||||
|
||||
interface LoadingProps {
|
||||
message: string;
|
||||
}
|
||||
|
||||
const CLASSNAME = 'LoadingIndicator';
|
||||
const CLASSNAME_MESSAGE = `${CLASSNAME}-message`;
|
||||
|
||||
const LoadingIndicator: React.FC<LoadingProps> = ({ message }) => (
|
||||
<div className={CLASSNAME}>
|
||||
<Spinner animation="border" role="status">
|
||||
<span className="sr-only">Loading...</span>
|
||||
</Spinner>
|
||||
<h4 className={CLASSNAME_MESSAGE}>
|
||||
{ message }
|
||||
</h4>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default LoadingIndicator;
|
||||
Reference in New Issue
Block a user