From dec9f96eed13e9b7f79257b405935fabe5ec0486 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 27 Apr 2021 09:01:19 -0400 Subject: [PATCH] Replace loading with fetching in new components --- src/redux/studio.js | 8 ++++---- src/views/studio/studio-comments-allowed.jsx | 12 ++++++------ src/views/studio/studio-description.jsx | 12 ++++++------ src/views/studio/studio-follow.jsx | 14 +++++++------- src/views/studio/studio-image.jsx | 12 ++++++------ src/views/studio/studio-open-to-all.jsx | 12 ++++++------ src/views/studio/studio-title.jsx | 12 ++++++------ 7 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/redux/studio.js b/src/redux/studio.js index ff4a52ed9..b6b5eb72b 100644 --- a/src/redux/studio.js +++ b/src/redux/studio.js @@ -89,9 +89,9 @@ const selectStudioDescription = state => state.studio.description; const selectStudioImage = state => state.studio.image; const selectStudioOpenToAll = state => state.studio.openToAll; const selectStudioCommentsAllowed = state => state.studio.commentsAllowed; -const selectIsLoadingInfo = state => state.studio.infoStatus === Status.FETCHING; +const selectIsFetchingInfo = state => state.studio.infoStatus === Status.FETCHING; const selectIsFollowing = state => state.studio.following; -const selectIsLoadingRoles = state => state.studio.rolesStatus === Status.FETCHING; +const selectIsFetchingRoles = state => state.studio.rolesStatus === Status.FETCHING; // Thunks const getInfo = () => ((dispatch, getState) => { @@ -157,7 +157,7 @@ module.exports = { selectStudioImage, selectStudioOpenToAll, selectStudioCommentsAllowed, - selectIsLoadingInfo, - selectIsLoadingRoles, + selectIsFetchingInfo, + selectIsFetchingRoles, selectIsFollowing }; diff --git a/src/views/studio/studio-comments-allowed.jsx b/src/views/studio/studio-comments-allowed.jsx index ce464fbe1..f04bd0127 100644 --- a/src/views/studio/studio-comments-allowed.jsx +++ b/src/views/studio/studio-comments-allowed.jsx @@ -3,17 +3,17 @@ import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; -import {selectStudioCommentsAllowed, selectIsLoadingInfo} from '../../redux/studio'; +import {selectStudioCommentsAllowed, selectIsFetchingInfo} from '../../redux/studio'; import { mutateStudioCommentsAllowed, selectIsMutatingCommentsAllowed, selectCommentsAllowedMutationError } from '../../redux/studio-mutations'; const StudioCommentsAllowed = ({ - commentsAllowedError, isLoading, isMutating, commentsAllowed, handleUpdate + commentsAllowedError, isFetching, isMutating, commentsAllowed, handleUpdate }) => (
- {isLoading ? ( -

Loading...

+ {isFetching ? ( +

Fetching...

) : (