Skip to content

Commit

Permalink
Updates copy
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwin Pc <[email protected]>
  • Loading branch information
ashwin-pc committed Sep 7, 2022
1 parent e8b4899 commit dd6aadd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,35 @@
import React, { memo } from 'react';
import { EuiCallOut, EuiLink } from '@elastic/eui';
import { FormattedMessage } from '@osd/i18n/react';
import { i18n } from '@osd/i18n';

export const InfoComponent = () => {
const title = (
<>
return (
<EuiCallOut
className="hide-for-sharing"
data-test-subj="experimentalVisInfo"
size="s"
title={i18n.translate('wizard.experimentalInfoTitle', {
defaultMessage: 'This editor is experimental and should not be used in production',
})}
iconType="beaker"
>
<FormattedMessage
id="wizard.experimentalInfoText"
defaultMessage="This editor is experimental, do not use in production.
For feedback, please create an issue in {githubLink}."
defaultMessage="We want to hear from you about how we can improve your experience. Leave feedback in {githubLink}."
values={{
githubLink: (
<EuiLink
external
href="https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new/choose"
href="https://github.com/opensearch-project/OpenSearch-Dashboards/issues/2280"
target="_blank"
>
GitHub
the GitHub issue
</EuiLink>
),
}}
/>
</>
);

return (
<EuiCallOut
className="hide-for-sharing"
data-test-subj="experimentalVisInfo"
size="s"
title={title}
iconType="beaker"
/>
</EuiCallOut>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export const RightNav = () => {
{newVisType && (
<EuiConfirmModal
title={i18n.translate('wizard.rightNav.changeVisType.modalTitle', {
defaultMessage: 'Change Visualization type',
defaultMessage: 'Change visualization type',
})}
confirmButtonText={i18n.translate('wizard.rightNav.changeVisType.confirmText', {
defaultMessage: 'Ok',
defaultMessage: 'Change type',
})}
cancelButtonText={i18n.translate('wizard.rightNav.changeVisType.cancelText', {
defaultMessage: 'Cancel',
Expand All @@ -79,7 +79,7 @@ export const RightNav = () => {
<p>
<FormattedMessage
id="wizard.rightNav.changeVisType.modalDescription"
defaultMessage="Changing the visualization type will reset all field selections. Are you sure you want to continue?"
defaultMessage="Changing the visualization type will reset all field selections. Do you want to continue?"
/>
</p>
</EuiConfirmModal>
Expand Down

0 comments on commit dd6aadd

Please sign in to comment.