Common components refactor #1

Merged
akinwale merged 42 commits from common-components-refactor into master 2018-04-05 04:57:30 +02:00
4 changed files with 555 additions and 385 deletions
Showing only changes of commit aac0ea9972 - Show all commits

File diff suppressed because it is too large Load diff

View file

@ -8,6 +8,14 @@ export { doOpenModal, doCloseModal, doShowSnackBar } from 'redux/actions/app';
export { doFetchClaimListMine, doAbandonClaim, doResolveUris, doResolveUri } from 'redux/actions/claims';
export { doFetchCostInfoForUri } from 'redux/actions/cost_info';
export { doFetchFileInfo, doFileList, doFetchFileInfosAndPublishedClaims } from 'redux/actions/file_info';
export {
doNavigate,
doAuthNavigate,
doHistoryTraverse,
doHistoryBack,
doHistoryForward,
doRecordScroll
} from 'redux/actions/navigation';
export { doSearch } from 'redux/actions/search';
export {
doUpdateBalance,
@ -22,6 +30,10 @@ export {
doSendSupport
} from 'redux/actions/wallet';
// utils
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
// reducers
export { claimsReducer } from 'redux/reducers/claims';
export { costInfoReducer } from 'redux/reducers/cost_info';
@ -79,6 +91,22 @@ export {
selectTotalDownloadProgress
} from 'redux/selectors/file_info';
export {
computePageFromPath,
makeSelectCurrentParam,
selectCurrentPath,
selectCurrentPage,
selectCurrentParams,
selectHeaderLinks,
selectPageTitle,
selectPathAfterAuth,
selectIsBackDisabled,
selectIsForwardDisabled,
selectHistoryIndex,
selectHistoryStack,
selectActiveHistoryEntry
} from 'redux/selectors/navigation';
export {
makeSelectSearchUris,
selectSearchQuery,

View file

@ -1,9 +1,7 @@
// https://github.com/reactjs/redux/issues/911
function batchActions(...actions) {
export function batchActions(...actions) {
return {
type: 'BATCH_ACTIONS',
actions,
};
}
export default batchActions;