Skip to content

Commit 3edacb0

Browse files
fix: update broken TSDoc links in MUI button components (#7107)
1 parent 64625bb commit 3edacb0

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.changeset/shiny-ways-burn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@refinedev/mui": patch
3+
---
4+
5+
fix: update TSDoc links in MUI button components
6+
7+
Fixed Material UI documentation links in button components to point to the correct URL.

packages/mui/src/components/buttons/clone/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import AddBoxOutlined from "@mui/icons-material/AddBoxOutlined";
1111
import type { CloneButtonProps } from "../types";
1212

1313
/**
14-
* `<CloneButton>` uses Material UI {@link https://mui.com/components/buttons/ `<Button> component`}.
14+
* `<CloneButton>` uses Material UI {@link https://mui.com/material-ui/react-button/ `<Button> component`}.
1515
* It uses the {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation#clone `clone`} method from {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation useNavigation} under the hood.
1616
* It can be useful when redirecting the app to the create page with the record id route of resource.
1717
*

packages/mui/src/components/buttons/create/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import AddBoxOutlined from "@mui/icons-material/AddBoxOutlined";
1111
import type { CreateButtonProps } from "../types";
1212

1313
/**
14-
* <CreateButton> uses Material UI {@link https://mui.com/components/buttons/ `<Button> component`}.
14+
* <CreateButton> uses Material UI {@link https://mui.com/material-ui/react-button/ `<Button> component`}.
1515
* It uses the {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation#create `create`} method from {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation `useNavigation`} under the hood.
1616
* It can be useful to redirect the app to the create page route of resource}.
1717
*

packages/mui/src/components/buttons/edit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import EditOutlined from "@mui/icons-material/EditOutlined";
1111
import type { EditButtonProps } from "../types";
1212

1313
/**
14-
* `<EditButton>` uses uses Material UI {@link https://mui.com/components/buttons/ `<Button>`} component.
14+
* `<EditButton>` uses uses Material UI {@link https://mui.com/material-ui/react-button/ `<Button>`} component.
1515
* It uses the {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation#edit `edit`} method from {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation `useNavigation`} under the hood.
1616
* It can be useful when redirecting the app to the edit page with the record id route of resource}.
1717
*

packages/mui/src/components/buttons/list/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ListOutlined from "@mui/icons-material/ListOutlined";
1111
import type { ListButtonProps } from "../types";
1212

1313
/**
14-
* `<ListButton>` is using uses Material UI {@link https://mui.com/components/buttons/ `<Button>`} component.
14+
* `<ListButton>` is using uses Material UI {@link https://mui.com/material-ui/react-button/ `<Button>`} component.
1515
* It uses the {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation#list `list`} method from {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation `useNavigation`} under the hood.
1616
* It can be useful when redirecting the app to the list page route of resource}.
1717
*

packages/mui/src/components/buttons/show/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import VisibilityOutlined from "@mui/icons-material/VisibilityOutlined";
1111
import type { ShowButtonProps } from "../types";
1212

1313
/**
14-
* `<ShowButton>` uses uses Material UI {@link https://mui.com/components/buttons/ `<Button>`} component.
14+
* `<ShowButton>` uses uses Material UI {@link https://mui.com/material-ui/react-button/ `<Button>`} component.
1515
* It uses the {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation#show `show`} method from {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation `useNavigation`} under the hood.
1616
* It can be useful when redirecting the app to the show page with the record id route of resource.
1717
*

0 commit comments

Comments
 (0)