Skip to content

Commit

Permalink
Deprecate kibana_react RedirectAppLinks in favor of shared_ux Redirec…
Browse files Browse the repository at this point in the history
…tAppLinks (#128178)
  • Loading branch information
rshen91 authored Mar 24, 2022
1 parent 46f5c03 commit 74a00fa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { RedirectAppLinks } from './redirect_app_links';
export type { RedirectAppLinksProps } from './redirect_app_links';

export { RedirectAppLinks } from './redirect_app_links';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/kibana_react/public/app_links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

/** @deprecated Use `RedirectAppLinks` from `@kbn/shared-ux-components */
export { RedirectAppLinks } from './redirect_app_link';
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import React, { MouseEvent } from 'react';
import { mount } from 'enzyme';
import { applicationServiceMock } from '../../../../core/public/mocks';
/** @deprecated Use `RedirectAppLinks` from `@kbn/shared-ux-components */
import { RedirectAppLinks } from './redirect_app_link';
import { BehaviorSubject } from 'rxjs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ interface RedirectCrossAppLinksProps extends React.HTMLAttributes<HTMLDivElement
* It is recommended to use the component at the highest possible level of the component tree that would
* require to handle the links. A good practice is to consider it as a context provider and to use it
* at the root level of an application or of the page that require the feature.
*
* @deprecated use RedirectAppLinks from @kbn-shared-ux-components
*/

export const RedirectAppLinks: FunctionComponent<RedirectCrossAppLinksProps> = ({
application,
children,
Expand Down
1 change: 1 addition & 0 deletions src/plugins/kibana_react/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export { reactToUiComponent, uiToReactComponent } from './adapters';
export { toMountPoint, MountPointPortal } from './util';
export type { ToMountPointOptions } from './util';

/** @deprecated Use `RedirectAppLinks` from `@kbn/shared-ux-components */
export { RedirectAppLinks } from './app_links';

export { wrapWithTheme, KibanaThemeProvider } from './theme';
Expand Down

0 comments on commit 74a00fa

Please sign in to comment.