Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/proud-socks-yawn.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions examples/inferencer-antd/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
14 changes: 14 additions & 0 deletions examples/inferencer-antd/src/lib/init-dayjs.ts
Original file line number Diff line number Diff line change
@@ -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);
1 change: 1 addition & 0 deletions packages/chakra-ui/src/components/buttons/show/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ShowButton: React.FC<ShowButtonProps> = ({
resource: resourceNameFromProps ?? resourceNameOrRouteName,
id: recordItemId,
accessControl,
meta,
});

const isDisabled = disabled || rest.disabled;
Expand Down
Loading