Skip to content

Commit

Permalink
[docs][base-ui] Add type parameter to the button in prepareForSlot de…
Browse files Browse the repository at this point in the history
…mo (#38640)
  • Loading branch information
michaldudak authored Sep 4, 2023
1 parent ef35fe4 commit 34c6464
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const LinkSlot = prepareForSlot(Link);

export default function PrepareForSlot() {
return (
<Button href="/" slots={{ root: LinkSlot }}>
<Button href="/" slots={{ root: LinkSlot }} prefetch={false}>
Home
</Button>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const LinkSlot = prepareForSlot(Link);

export default function PrepareForSlot() {
return (
<Button href="/" slots={{ root: LinkSlot }}>
<Button<typeof LinkSlot> href="/" slots={{ root: LinkSlot }} prefetch={false}>
Home
</Button>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Button href="/" slots={{ root: LinkSlot }}>
<Button<typeof LinkSlot> href="/" slots={{ root: LinkSlot }} prefetch={false}>
Home
</Button>

0 comments on commit 34c6464

Please sign in to comment.