mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
24 lines
516 B
TypeScript
24 lines
516 B
TypeScript
/// <reference types="webpack-env" />
|
|
|
|
import { dedent } from 'ts-dedent';
|
|
|
|
let hasWarned = false;
|
|
|
|
export function LinkTo(): null {
|
|
if (!hasWarned) {
|
|
// eslint-disable-next-line no-console
|
|
console.error(dedent`
|
|
LinkTo has moved to addon-links/react:
|
|
import LinkTo from '@storybook/addon-links/react';
|
|
`);
|
|
hasWarned = true;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
export { linkTo, hrefTo, withLinks, navigate } from './utils';
|
|
|
|
if (module && module.hot && module.hot.decline) {
|
|
module.hot.decline();
|
|
}
|