mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -7,9 +7,10 @@ import Box from './Box';
|
||||
interface Props {
|
||||
areUpdating: boolean;
|
||||
error: string;
|
||||
areDirty?: boolean;
|
||||
}
|
||||
|
||||
const SiteSettingsInfoBox = ({ areUpdating, error }: Props) => (
|
||||
const SiteSettingsInfoBox = ({ areUpdating, error, areDirty = false }: Props) => (
|
||||
<Box customClass="siteSettingsInfo">
|
||||
{
|
||||
areUpdating ?
|
||||
@@ -17,10 +18,13 @@ const SiteSettingsInfoBox = ({ areUpdating, error }: Props) => (
|
||||
:
|
||||
error ?
|
||||
<span className="error">
|
||||
{I18n.t('site_settings.info_box.error', { message: JSON.stringify(error) })}
|
||||
{ I18n.t('site_settings.info_box.error', { message: JSON.stringify(error) }) }
|
||||
</span>
|
||||
:
|
||||
<span>{I18n.t('site_settings.info_box.up_to_date')}</span>
|
||||
areDirty ?
|
||||
<span className="warning">{ I18n.t('site_settings.info_box.dirty') }</span>
|
||||
:
|
||||
<span>{ I18n.t('site_settings.info_box.up_to_date') }</span>
|
||||
}
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user