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
23
node_modules/@mui/x-date-pickers/hooks/usePickerContext.js
generated
vendored
Normal file
23
node_modules/@mui/x-date-pickers/hooks/usePickerContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.usePickerContext = exports.PickerContext = void 0;
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
const PickerContext = exports.PickerContext = /*#__PURE__*/React.createContext(null);
|
||||
|
||||
/**
|
||||
* Returns the context passed by the Picker wrapping the current component.
|
||||
*/
|
||||
if (process.env.NODE_ENV !== "production") PickerContext.displayName = "PickerContext";
|
||||
const usePickerContext = () => {
|
||||
const value = React.useContext(PickerContext);
|
||||
if (value == null) {
|
||||
throw new Error('MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component');
|
||||
}
|
||||
return value;
|
||||
};
|
||||
exports.usePickerContext = usePickerContext;
|
||||
Loading…
Add table
Add a link
Reference in a new issue