[SharedUX] NoDataPage: open docs link in a new tab (#132324)

* [SharedUX] NoDataPage: open docs link in a new tab

* Fix failing snapshot

* Fix docs link
This commit is contained in:
Maja Grubic 2022-05-18 08:23:05 +02:00 committed by GitHub
parent 0f3af54f6e
commit 767983a622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ const noDataConfig = {
title: 'Add Integrations',
},
},
docsLink: 'http://www.docs.com',
docsLink: 'http://docs.elastic.dev',
};
type Params = Pick<NoDataPageProps, 'solution' | 'logo'> & DataServiceFactoryConfig;

View file

@ -29,6 +29,7 @@ exports[`NoDataPage render 1`] = `
Object {
"link": <EuiLink
href="test"
target="_blank"
>
<FormattedMessage
defaultMessage="learn more"

View file

@ -58,7 +58,7 @@ export const NoDataPage: FunctionComponent<NoDataPageProps> = ({
values={{
solution,
link: (
<EuiLink href={docsLink}>
<EuiLink href={docsLink} target="_blank">
<FormattedMessage
id="sharedUXComponents.noDataPage.intro.link"
defaultMessage="learn more"