File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
examples/inferencer-antd/src
packages/chakra-ui/src/components/buttons/show Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ import { ForgotPassword } from "./pages/forgotPassword";
37
37
import { Login } from "./pages/login" ;
38
38
import { Register } from "./pages/register" ;
39
39
40
+ import "./lib/init-dayjs" ;
41
+
40
42
function App ( ) {
41
43
const { t, i18n } = useTranslation ( ) ;
42
44
Original file line number Diff line number Diff line change
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 ) ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export const ShowButton: React.FC<ShowButtonProps> = ({
32
32
resource : resourceNameFromProps ?? resourceNameOrRouteName ,
33
33
id : recordItemId ,
34
34
accessControl,
35
+ meta,
35
36
} ) ;
36
37
37
38
const isDisabled = disabled || rest . disabled ;
You can’t perform that action at this time.
0 commit comments