@@ -9,11 +9,11 @@ import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
9
9
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs' ;
10
10
import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker' ;
11
11
12
- import { useLocaleText } from '@mui/x-date-pickers/hooks' ;
12
+ import { usePickersTranslations } from '@mui/x-date-pickers/hooks' ;
13
13
14
14
function CustomActionBar ( props ) {
15
15
const { onAccept, onClear, onCancel, onSetToday, actions, className } = props ;
16
- const localeText = useLocaleText ( ) ;
16
+ const translations = usePickersTranslations ( ) ;
17
17
const [ anchorEl , setAnchorEl ] = React . useState ( null ) ;
18
18
const open = Boolean ( anchorEl ) ;
19
19
const id = useId ( ) ;
@@ -34,7 +34,7 @@ function CustomActionBar(props) {
34
34
} }
35
35
key = { actionType }
36
36
>
37
- { localeText . clearButtonLabel }
37
+ { translations . clearButtonLabel }
38
38
</ MenuItem >
39
39
) ;
40
40
@@ -47,7 +47,7 @@ function CustomActionBar(props) {
47
47
} }
48
48
key = { actionType }
49
49
>
50
- { localeText . cancelButtonLabel }
50
+ { translations . cancelButtonLabel }
51
51
</ MenuItem >
52
52
) ;
53
53
@@ -60,7 +60,7 @@ function CustomActionBar(props) {
60
60
} }
61
61
key = { actionType }
62
62
>
63
- { localeText . okButtonLabel }
63
+ { translations . okButtonLabel }
64
64
</ MenuItem >
65
65
) ;
66
66
@@ -74,7 +74,7 @@ function CustomActionBar(props) {
74
74
} }
75
75
key = { actionType }
76
76
>
77
- { localeText . todayButtonLabel }
77
+ { translations . todayButtonLabel }
78
78
</ MenuItem >
79
79
) ;
80
80
0 commit comments