Skip to content

Commit 16d9fa1

Browse files
authored
fix(chakra-ui): add meta to ShowButton Props (#6740)
1 parent 8685734 commit 16d9fa1

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

.changeset/proud-socks-yawn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@refinedev/chakra-ui": minor
3+
---
4+
5+
- Ensure `meta` prop is passed to the `ShowButton` component of Charka-UI
6+
7+
[Resolves #6707](https://github.com/refinedev/refine/issues/6707)

examples/inferencer-antd/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ import { ForgotPassword } from "./pages/forgotPassword";
3737
import { Login } from "./pages/login";
3838
import { Register } from "./pages/register";
3939

40+
import "./lib/init-dayjs";
41+
4042
function App() {
4143
const { t, i18n } = useTranslation();
4244

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import dayjs from "dayjs";
2+
import advancedFormat from "dayjs/plugin/advancedFormat";
3+
import customParseFormat from "dayjs/plugin/customParseFormat";
4+
import localeData from "dayjs/plugin/localeData";
5+
import weekday from "dayjs/plugin/weekday";
6+
import weekOfYear from "dayjs/plugin/weekOfYear";
7+
import weekYear from "dayjs/plugin/weekYear";
8+
9+
dayjs.extend(customParseFormat);
10+
dayjs.extend(advancedFormat);
11+
dayjs.extend(weekday);
12+
dayjs.extend(localeData);
13+
dayjs.extend(weekOfYear);
14+
dayjs.extend(weekYear);

packages/chakra-ui/src/components/buttons/show/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const ShowButton: React.FC<ShowButtonProps> = ({
3232
resource: resourceNameFromProps ?? resourceNameOrRouteName,
3333
id: recordItemId,
3434
accessControl,
35+
meta,
3536
});
3637

3738
const isDisabled = disabled || rest.disabled;

0 commit comments

Comments
 (0)