From 57cf9724caf85d943c586b15271a4d4b3006dc01 Mon Sep 17 00:00:00 2001 From: arndom Date: Thu, 3 Apr 2025 15:34:03 +0100 Subject: [PATCH] fix(chakra-ui): add meta to ShowButton Props - add changeset --- .changeset/proud-socks-yawn.md | 7 +++++++ packages/chakra-ui/src/components/buttons/show/index.tsx | 1 + 2 files changed, 8 insertions(+) create mode 100644 .changeset/proud-socks-yawn.md diff --git a/.changeset/proud-socks-yawn.md b/.changeset/proud-socks-yawn.md new file mode 100644 index 0000000000000..3981ce8f3607e --- /dev/null +++ b/.changeset/proud-socks-yawn.md @@ -0,0 +1,7 @@ +--- +"@refinedev/chakra-ui": minor +--- + +- Ensure `meta` prop is passed to the `ShowButton` component of Charka-UI + +[Resolves #6707](https://github.com/refinedev/refine/issues/6707) diff --git a/packages/chakra-ui/src/components/buttons/show/index.tsx b/packages/chakra-ui/src/components/buttons/show/index.tsx index a0e461e96fdbe..36461a954ab44 100644 --- a/packages/chakra-ui/src/components/buttons/show/index.tsx +++ b/packages/chakra-ui/src/components/buttons/show/index.tsx @@ -32,6 +32,7 @@ export const ShowButton: React.FC = ({ resource: resourceNameFromProps ?? resourceNameOrRouteName, id: recordItemId, accessControl, + meta, }); const isDisabled = disabled || rest.disabled;