@@ -32,9 +32,7 @@ const LoaderText = (props) => {
3232 else if ( isLoading ) {
3333 return (
3434 < Alert variant = 'info' >
35- < Spinner animation = "border" role = "status" >
36- < span className = "sr-only" > Loading...</ span >
37- </ Spinner >
35+ < Spinner animation = "border" role = "status" />
3836 < span > Downloading { item } ...</ span >
3937 </ Alert >
4038 ) ;
@@ -55,15 +53,11 @@ LoaderText.propTypes = {
5553
5654const Loader = ( props ) => {
5755 const {
58- contactsState,
59- institutesState,
6056 definitiveState,
6157 intermagnetState,
6258 } = props ;
6359
6460 let completed = 0 ;
65- completed += ( contactsState . isLoading && ! contactsState . isError ) ? 0 : 1 ;
66- completed += ( institutesState . isLoading && ! institutesState . isError ) ? 0 : 1 ;
6761 completed += ( definitiveState . isLoading && ! definitiveState . isError ) ? 0 : 1 ;
6862 completed += ( intermagnetState . isLoading && ! intermagnetState . isError ) ? 0 : 1 ;
6963
@@ -80,10 +74,6 @@ const Loader = (props) => {
8074 </ Modal . Title >
8175 </ Modal . Header >
8276 < Modal . Body >
83- < LoaderText item = 'contacts'
84- isLoading = { contactsState . isLoading } isError = { contactsState . isError } />
85- < LoaderText item = 'list of institutes'
86- isLoading = { institutesState . isLoading } isError = { institutesState . isError } />
8777 < LoaderText item = 'definitive information'
8878 isLoading = { definitiveState . isLoading } isError = { definitiveState . isError } />
8979 < LoaderText item = 'intermagnet observatory details'
@@ -99,8 +89,6 @@ const stateObject = {
9989} ;
10090
10191Loader . propTypes = {
102- contactsState : PropTypes . shape ( stateObject ) . isRequired ,
103- institutesState : PropTypes . shape ( stateObject ) . isRequired ,
10492 definitiveState : PropTypes . shape ( stateObject ) . isRequired ,
10593 intermagnetState : PropTypes . shape ( stateObject ) . isRequired ,
10694} ;
0 commit comments