Skip to content

Commit

Permalink
Add experimental warning callout.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Sep 28, 2020
1 parent 6ffecb1 commit 4408c81
Showing 1 changed file with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
// @ts-ignore formatNumber

import { formatNumber } from '@elastic/eui/lib/services/format';
import {
EuiCallOut,
Expand All @@ -12,13 +12,10 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiSpacer,
EuiBadge,
EuiText,
EuiPopover,
} from '@elastic/eui';
import React, { useState } from 'react';
import React from 'react';
import { i18n } from '@kbn/i18n';
import { EuiPanel } from '@elastic/eui';
import { Ping, HttpResponseBody } from '../../../../common/runtime_types';
import { DocLinkForBody } from './doc_link_body';
import { PingRedirects } from './ping_redirects';
Expand Down Expand Up @@ -58,7 +55,21 @@ export const PingListExpandedRowComponent = ({ ping }: Props) => {
const listItems = [];

if (ping.monitor.type === 'suitejourney' || ping.monitor.type === 'browser') {
return <ScriptExpandedRow checkGroup={ping.monitor.check_group} />;
return (
<EuiFlexGroup direction="column">
<EuiFlexItem>
<EuiCallOut
iconType="beaker"
title={i18n.translate('xpack.uptime.synthetics.experimentalCallout.title', {
defaultMessage: 'Experimental feature',
})}
/>
</EuiFlexItem>
<EuiFlexItem>
<ScriptExpandedRow checkGroup={ping.monitor.check_group} />
</EuiFlexItem>
</EuiFlexGroup>
);
}

// Show the error block
Expand Down

0 comments on commit 4408c81

Please sign in to comment.