mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
This commit is contained in:
parent
db327da470
commit
b040096beb
3 changed files with 5 additions and 2 deletions
|
@ -28,6 +28,7 @@ interface SuggestionsCalloutProps {
|
|||
description: string;
|
||||
buttonTo: string;
|
||||
lastUpdatedTimestamp: string; // ISO string like '2021-10-04T18:53:02.784Z'
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export const SuggestionsCallout: React.FC<SuggestionsCalloutProps> = ({
|
||||
|
@ -35,6 +36,7 @@ export const SuggestionsCallout: React.FC<SuggestionsCalloutProps> = ({
|
|||
description,
|
||||
buttonTo,
|
||||
lastUpdatedTimestamp,
|
||||
style,
|
||||
}) => {
|
||||
const { pathname } = useLocation();
|
||||
|
||||
|
@ -49,7 +51,7 @@ export const SuggestionsCallout: React.FC<SuggestionsCalloutProps> = ({
|
|||
|
||||
return (
|
||||
<>
|
||||
<EuiCallOut color="success" iconType={LightbulbIcon} title={title}>
|
||||
<EuiCallOut style={style} color="success" iconType={LightbulbIcon} title={title}>
|
||||
<EuiText size="s">
|
||||
<p>{description}</p>
|
||||
</EuiText>
|
||||
|
@ -80,7 +82,6 @@ export const SuggestionsCallout: React.FC<SuggestionsCalloutProps> = ({
|
|||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiCallOut>
|
||||
<EuiSpacer />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -35,6 +35,7 @@ export const SuggestedDocumentsCallout: React.FC = () => {
|
|||
|
||||
return (
|
||||
<SuggestionsCallout
|
||||
style={{ marginTop: '24px' }}
|
||||
title={i18n.translate(
|
||||
'xpack.enterpriseSearch.appSearch.engine.curation.suggestedDocumentsCallout.title',
|
||||
{ defaultMessage: 'New suggested documents for this query' }
|
||||
|
|
|
@ -34,6 +34,7 @@ export const SuggestedCurationsCallout: React.FC = () => {
|
|||
|
||||
return (
|
||||
<SuggestionsCallout
|
||||
style={{ marginBottom: '24px' }}
|
||||
title={i18n.translate(
|
||||
'xpack.enterpriseSearch.appSearch.engine.suggestedCurationsCallout.title',
|
||||
{ defaultMessage: 'New suggested curations to review' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue