Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created June 20, 2019 19:18
Show Gist options
  • Save lynndylanhurley/31f12d40c3930439789762df264bc615 to your computer and use it in GitHub Desktop.
Save lynndylanhurley/31f12d40c3930439789762df264bc615 to your computer and use it in GitHub Desktop.
export default {
className: PropTypes.string,
searchFieldProps: PropTypes.shape({
loading: PropTypes.bool,
blockInput: PropTypes.bool,
showSearch: PropTypes.bool,
handleSubmit: PropTypes.func,
}),
searchActionProps: PropTypes.shape({
filterOptions: PropTypes.array,
currentQuery: PropTypes.object,
selectFilter: PropTypes.func,
selectSort: PropTypes.func,
}),
resultsMessageProps: PropTypes.shape({
sort: PropTypes.string,
filterParams: PropTypes.object,
filterOptions: PropTypes.array,
currentPage: PropTypes.number,
totalPages: PropTypes.number,
search: PropTypes.string,
empty: PropTypes.bool,
}),
showCurrentPageMessage: PropTypes.bool,
resultsContainerProps: PropTypes.shape({
loading: PropTypes.bool,
onRetry: PropTypes.func,
empty: PropTypes.bool,
emptyMesasge: PropTypes.string,
}),
resultsListProps: PropTypes.shape({
entities: PropTypes.any,
type: PropTypes.string,
}),
paginationProps: PropTypes.shape({
selectPage: PropTypes.func,
currentPage: PropTypes.number,
totalPages: PropTypes.number,
pageRangeDisplayed: PropTypes.number,
}),
showSearch: PropTypes.bool,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment