parent
0e82899958
commit
6482509a1d
@ -0,0 +1,11 @@
|
|||||||
|
.title {
|
||||||
|
composes: title from '~Components/DescriptionList/DescriptionListItemTitle.css';
|
||||||
|
|
||||||
|
width: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
composes: title from '~Components/DescriptionList/DescriptionListItemDescription.css';
|
||||||
|
|
||||||
|
margin-left: 110px;
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
// This file is automatically generated.
|
||||||
|
// Please do not change this file!
|
||||||
|
interface CssExports {
|
||||||
|
'description': string;
|
||||||
|
'title': string;
|
||||||
|
}
|
||||||
|
export const cssExports: CssExports;
|
||||||
|
export default cssExports;
|
@ -0,0 +1,51 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import DescriptionList from 'Components/DescriptionList/DescriptionList';
|
||||||
|
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
|
||||||
|
import formatDateTime from 'Utilities/Date/formatDateTime';
|
||||||
|
import translate from 'Utilities/String/translate';
|
||||||
|
import styles from './DisabledIndexerInfo.css';
|
||||||
|
|
||||||
|
interface DisabledIndexerInfoProps {
|
||||||
|
mostRecentFailure: Date;
|
||||||
|
disabledTill: Date;
|
||||||
|
initialFailure: Date;
|
||||||
|
longDateFormat: string;
|
||||||
|
timeFormat: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
function DisabledIndexerInfo(props: DisabledIndexerInfoProps) {
|
||||||
|
const {
|
||||||
|
mostRecentFailure,
|
||||||
|
disabledTill,
|
||||||
|
initialFailure,
|
||||||
|
longDateFormat,
|
||||||
|
timeFormat,
|
||||||
|
} = props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DescriptionList>
|
||||||
|
<DescriptionListItem
|
||||||
|
titleClassName={styles.title}
|
||||||
|
descriptionClassName={styles.description}
|
||||||
|
title={translate('InitialFailure')}
|
||||||
|
data={formatDateTime(initialFailure, longDateFormat, timeFormat)}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<DescriptionListItem
|
||||||
|
titleClassName={styles.title}
|
||||||
|
descriptionClassName={styles.description}
|
||||||
|
title={translate('LastFailure')}
|
||||||
|
data={formatDateTime(mostRecentFailure, longDateFormat, timeFormat)}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<DescriptionListItem
|
||||||
|
titleClassName={styles.title}
|
||||||
|
descriptionClassName={styles.description}
|
||||||
|
title={translate('DisabledUntil')}
|
||||||
|
data={formatDateTime(disabledTill, longDateFormat, timeFormat)}
|
||||||
|
/>
|
||||||
|
</DescriptionList>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DisabledIndexerInfo;
|
Loading…
Reference in new issue