mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-28 03:15:16 +00:00
24 lines
655 B
JavaScript
24 lines
655 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||
|
|
||
|
exports.__esModule = true;
|
||
|
exports.default = void 0;
|
||
|
|
||
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||
|
|
||
|
var _utils = require("./utils");
|
||
|
|
||
|
var PopperTargetHelper = function PopperTargetHelper(props, context) {
|
||
|
context.popperManager.setTargetNode((0, _utils.getTarget)(props.target));
|
||
|
return null;
|
||
|
};
|
||
|
|
||
|
PopperTargetHelper.contextTypes = {
|
||
|
popperManager: _propTypes.default.object.isRequired
|
||
|
};
|
||
|
PopperTargetHelper.propTypes = {
|
||
|
target: _utils.targetPropType.isRequired
|
||
|
};
|
||
|
var _default = PopperTargetHelper;
|
||
|
exports.default = _default;
|