mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Updates
This commit is contained in:
parent
38a034d683
commit
f26a37654a
@ -71,7 +71,6 @@ interface AnchorMdxProps {
|
||||
href: string;
|
||||
}
|
||||
|
||||
// TODO: use A from html components
|
||||
export const AnchorMdx: React.FC<AnchorMdxProps> = ({ href, children, ...rest }) => {
|
||||
if (href.startsWith('#')) {
|
||||
return <AnchorInPage href={href}>{children}</AnchorInPage>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user