Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 18, 2024
1 parent 8a09e26 commit 253284a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/framework/react/guide/custom-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,26 @@ export const CustomLink: LinkComponent<typeof MUILinkComponent> = (props) => {
### Mantine example

```tsx
import * as React from "react";
import { createLink, LinkComponent } from "@tanstack/react-router";
import { Anchor, AnchorProps } from "@mantine/core";
import * as React from 'react'
import { createLink, LinkComponent } from '@tanstack/react-router'
import { Anchor, AnchorProps } from '@mantine/core'

interface MantineAnchorProps extends Omit<AnchorProps, "href"> {
interface MantineAnchorProps extends Omit<AnchorProps, 'href'> {
// Add any additional props you want to pass to the anchor
}

const MantineLinkComponent = React.forwardRef<
HTMLAnchorElement,
MantineAnchorProps
>((props, ref) => {
return <Anchor ref={ref} {...props} />;
});
return <Anchor ref={ref} {...props} />
})

const CreatedLinkComponent = createLink(MantineLinkComponent);
const CreatedLinkComponent = createLink(MantineLinkComponent)

export const CustomLink: LinkComponent<typeof MantineLinkComponent> = (
props
props,
) => {
return <CreatedLinkComponent preload="intent" {...props} />;
};
```
return <CreatedLinkComponent preload="intent" {...props} />
}
```

0 comments on commit 253284a

Please sign in to comment.