function IndexLinkContainer() {
_classCallCheck(this, IndexLinkContainer);
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
}n/a
function LinkContainer() {
var _temp, _this, _ret;
_classCallCheck(this, LinkContainer);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this
), _this.handleClick = function (event) {
var _this$props = _this.props,
children = _this$props.children,
onClick = _this$props.onClick;
if (children.props.onClick) {
children.props.onClick(event);
}
if (onClick) {
onClick(event);
}
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && // ignore right clicks
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
var history = _this.context.router.history;
var _this$props2 = _this.props,
replace = _this$props2.replace,
to = _this$props2.to;
if (replace) {
history.replace(to);
} else {
history.push(to);
}
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}n/a
function IndexLinkContainer() {
_classCallCheck(this, IndexLinkContainer);
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
}n/a
function render() {
return _react2.default.createElement(_LinkContainer2.default, _extends({}, this.props, { exact: true }));
}n/a
function LinkContainer() {
var _temp, _this, _ret;
_classCallCheck(this, LinkContainer);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this
), _this.handleClick = function (event) {
var _this$props = _this.props,
children = _this$props.children,
onClick = _this$props.onClick;
if (children.props.onClick) {
children.props.onClick(event);
}
if (onClick) {
onClick(event);
}
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && // ignore right clicks
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
var history = _this.context.router.history;
var _this$props2 = _this.props,
replace = _this$props2.replace,
to = _this$props2.to;
if (replace) {
history.replace(to);
} else {
history.push(to);
}
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}n/a
router = function () { [native code] }n/a
activeClassName = function () { [native code] }n/a
activeStyle = function () { [native code] }n/a
children = function () { [native code] }n/a
className = function () { [native code] }n/a
exact = function () { [native code] }n/a
isActive = function () { [native code] }n/a
onClick = function () { [native code] }...
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this
), _this.handleClick = function (event) {
var _this$props = _this.props,
children = _this$props.children,
onClick = _this$props.onClick;
if (children.props.onClick) {
children.props.onClick(event);
}
if (onClick) {
onClick(event);
}
if (!event.defaultPrevented && // onClick prevented default
...replace = function () { [native code] }...
var history = _this.context.router.history;
var _this$props2 = _this.props,
replace = _this$props2.replace,
to = _this$props2.to;
if (replace) {
history.replace(to);
} else {
history.push(to);
}
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}
...strict = function () { [native code] }n/a
style = function () { [native code] }n/a
to = function () { [native code] }n/a
function render() {
var _this2 = this;
var _props = this.props,
_children = _props.children,
replace = _props.replace,
to = _props.to,
exact = _props.exact,
strict = _props.strict,
activeClassName = _props.activeClassName,
className = _props.className,
activeStyle = _props.activeStyle,
style = _props.style,
getIsActive = _props.isActive,
props = _objectWithoutProperties(_props, ['children', 'replace', 'to', 'exact', 'strict', 'activeClassName', 'className', '
activeStyle', 'style', 'isActive']);
var href = this.context.router.history.createHref(typeof to === 'string' ? { pathname: to } : to);
return _react2.default.createElement(_reactRouterDom.Route, {
path: (typeof to === 'undefined' ? 'undefined' : _typeof(to)) === 'object' ? to.pathname : to,
exact: exact,
strict: strict,
children: function children(_ref) {
var location = _ref.location,
match = _ref.match;
var isActive = !!(getIsActive ? getIsActive(match, location) : match);
return _react2.default.cloneElement(_react2.default.Children.only(_children), _extends({}, props, {
className: isActive ? [className, activeClassName].join(' ') : className,
style: isActive ? _extends({}, style, activeStyle) : style,
href: href,
onClick: _this2.handleClick
}));
}
});
}n/a
function IndexLinkContainer() {
_classCallCheck(this, IndexLinkContainer);
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
}n/a
function LinkContainer() {
var _temp, _this, _ret;
_classCallCheck(this, LinkContainer);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this
), _this.handleClick = function (event) {
var _this$props = _this.props,
children = _this$props.children,
onClick = _this$props.onClick;
if (children.props.onClick) {
children.props.onClick(event);
}
if (onClick) {
onClick(event);
}
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && // ignore right clicks
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
var history = _this.context.router.history;
var _this$props2 = _this.props,
replace = _this$props2.replace,
to = _this$props2.to;
if (replace) {
history.replace(to);
} else {
history.push(to);
}
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}n/a