From 57cf9724caf85d943c586b15271a4d4b3006dc01 Mon Sep 17 00:00:00 2001 From: arndom Date: Thu, 3 Apr 2025 15:34:03 +0100 Subject: [PATCH 1/3] 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; From 14775db8b781739ef08f6b63958a1b972a759b1e Mon Sep 17 00:00:00 2001 From: Alican Erdurmaz Date: Fri, 2 May 2025 13:46:10 +0300 Subject: [PATCH 2/3] fix: dayjs error in inferencer-antd example --- examples/inferencer-antd/src/lib/init-dayjs.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/inferencer-antd/src/lib/init-dayjs.ts diff --git a/examples/inferencer-antd/src/lib/init-dayjs.ts b/examples/inferencer-antd/src/lib/init-dayjs.ts new file mode 100644 index 0000000000000..c74139afdf2b9 --- /dev/null +++ b/examples/inferencer-antd/src/lib/init-dayjs.ts @@ -0,0 +1,14 @@ +import dayjs from "dayjs"; +import advancedFormat from "dayjs/plugin/advancedFormat"; +import customParseFormat from "dayjs/plugin/customParseFormat"; +import localeData from "dayjs/plugin/localeData"; +import weekday from "dayjs/plugin/weekday"; +import weekOfYear from "dayjs/plugin/weekOfYear"; +import weekYear from "dayjs/plugin/weekYear"; + +dayjs.extend(customParseFormat); +dayjs.extend(advancedFormat); +dayjs.extend(weekday); +dayjs.extend(localeData); +dayjs.extend(weekOfYear); +dayjs.extend(weekYear); From 16f25900cf7758b9301dc8b06e49fdd603780365 Mon Sep 17 00:00:00 2001 From: Alican Erdurmaz Date: Fri, 2 May 2025 13:56:59 +0300 Subject: [PATCH 3/3] fix: dayjs error in inferencer-antd example --- examples/inferencer-antd/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/inferencer-antd/src/App.tsx b/examples/inferencer-antd/src/App.tsx index 74471d84483e3..0b48f13153a39 100644 --- a/examples/inferencer-antd/src/App.tsx +++ b/examples/inferencer-antd/src/App.tsx @@ -37,6 +37,8 @@ import { ForgotPassword } from "./pages/forgotPassword"; import { Login } from "./pages/login"; import { Register } from "./pages/register"; +import "./lib/init-dayjs"; + function App() { const { t, i18n } = useTranslation();