Added Statistics calculation
Statistics now show calculated values
This commit is contained in:
parent
fe87374e47
commit
fc0f69dacb
2147 changed files with 141321 additions and 39 deletions
15
node_modules/@mui/x-date-pickers/esm/hooks/usePickerActionsContext.js
generated
vendored
Normal file
15
node_modules/@mui/x-date-pickers/esm/hooks/usePickerActionsContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import { PickerActionsContext } from "../internals/components/PickerProvider.js";
|
||||
/**
|
||||
* Returns a subset of the context passed by the Picker wrapping the current component.
|
||||
* It only contains the actions and never causes a re-render of the component using it.
|
||||
*/
|
||||
export const usePickerActionsContext = () => {
|
||||
const value = React.useContext(PickerActionsContext);
|
||||
if (value == null) {
|
||||
throw new Error(['MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component'].join('\n'));
|
||||
}
|
||||
return value;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue