adds integrations with bookish-server, the books API and the google books API, adds functionality for library, searching for books, and displaying renters registered in the system
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.whenMapDispatchToPropsIsFunction = whenMapDispatchToPropsIsFunction;
|
||||
exports.whenMapDispatchToPropsIsMissing = whenMapDispatchToPropsIsMissing;
|
||||
exports.whenMapDispatchToPropsIsObject = whenMapDispatchToPropsIsObject;
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _redux = require("redux");
|
||||
|
||||
var _wrapMapToProps = require("./wrapMapToProps");
|
||||
|
||||
function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
|
||||
return typeof mapDispatchToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : undefined;
|
||||
}
|
||||
|
||||
function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
|
||||
return !mapDispatchToProps ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function (dispatch) {
|
||||
return {
|
||||
dispatch: dispatch
|
||||
};
|
||||
}) : undefined;
|
||||
}
|
||||
|
||||
function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
|
||||
return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function (dispatch) {
|
||||
return (0, _redux.bindActionCreators)(mapDispatchToProps, dispatch);
|
||||
}) : undefined;
|
||||
}
|
||||
|
||||
var _default = [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];
|
||||
exports["default"] = _default;
|
||||
Reference in New Issue
Block a user