mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Styling
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
import React from "react";
|
||||
import { Spinner } from "react-bootstrap";
|
||||
import cx from 'classnames';
|
||||
|
||||
interface ILoadingProps {
|
||||
message: string;
|
||||
message?: string;
|
||||
inline?: boolean;
|
||||
}
|
||||
|
||||
const CLASSNAME = "LoadingIndicator";
|
||||
const CLASSNAME_MESSAGE = `${CLASSNAME}-message`;
|
||||
|
||||
const LoadingIndicator: React.FC<ILoadingProps> = ({ message }) => (
|
||||
<div className={CLASSNAME}>
|
||||
const LoadingIndicator: React.FC<ILoadingProps> = ({ message, inline = false }) => (
|
||||
<div className={cx(CLASSNAME, { inline }) }>
|
||||
<Spinner animation="border" role="status">
|
||||
<span className="sr-only">Loading...</span>
|
||||
</Spinner>
|
||||
<h4 className={CLASSNAME_MESSAGE}>{message}</h4>
|
||||
<h4 className={CLASSNAME_MESSAGE}>{message ?? "Loading..."}</h4>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user