mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add post status administration (#105)
This commit is contained in:
committed by
GitHub
parent
c5148147e3
commit
5256ea911a
24
app/javascript/components/shared/SiteSettingsInfoBox.tsx
Normal file
24
app/javascript/components/shared/SiteSettingsInfoBox.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import Spinner from './Spinner';
|
||||
|
||||
interface Props {
|
||||
areUpdating: boolean;
|
||||
error: string;
|
||||
}
|
||||
|
||||
const SiteSettingsInfoBox = ({ areUpdating, error }: Props) => (
|
||||
<div className="content siteSettingsInfo">
|
||||
{
|
||||
areUpdating ?
|
||||
<Spinner />
|
||||
:
|
||||
error ?
|
||||
<span className="error">An error occurred: {error}</span>
|
||||
:
|
||||
<span>Everything up to date</span>
|
||||
}
|
||||
</div>
|
||||
);
|
||||
|
||||
export default SiteSettingsInfoBox;
|
||||
Reference in New Issue
Block a user