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:
+13
@@ -0,0 +1,13 @@
|
||||
import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps'
|
||||
|
||||
export function whenMapStateToPropsIsFunction(mapStateToProps) {
|
||||
return typeof mapStateToProps === 'function'
|
||||
? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps')
|
||||
: undefined
|
||||
}
|
||||
|
||||
export function whenMapStateToPropsIsMissing(mapStateToProps) {
|
||||
return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : undefined
|
||||
}
|
||||
|
||||
export default [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]
|
||||
Reference in New Issue
Block a user