File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import ModalLogin from './Modal/ModalLogin'
1010import DataService from './DataService'
1111
1212const { loadData, postData, setDataServLogin } = DataService ( )
13- const testText = "My little cards-app c: "
13+ const testText = "Notes App "
1414
1515var cardCount = 0
1616function calcCount ( cards ) {
@@ -131,10 +131,14 @@ function App() {
131131 console . log ( '[onLoadData]' , 'Данные с сервера загружены' )
132132 setLoadedCards ( data )
133133 setLoading ( false )
134- } , e => console . log ( `Data load request error. Response: ${ e } ` ) )
134+ } , e => {
135+ console . log ( `Data load request error. Response: ${ e } ` )
136+ setLoading ( false )
137+ } )
135138 }
136139 }
137140 catch ( e ) {
141+ setLoading ( false )
138142 console . error ( e )
139143 }
140144 }
@@ -197,7 +201,7 @@ function App() {
197201 < nav className = "d-flex container px-0 flex-wrap-reverse" >
198202 < div className = "text-center d-flex p-1 align-items-center justify-content-center flex-wrap" >
199203 < img src = { logo } className = "App-logo" alt = "logo" />
200- < h1 className = "h2 m-0" > { testText } </ h1 >
204+ < h1 className = "h2 m-0 text-dark " > { testText } </ h1 >
201205 </ div >
202206 < div className = "text-center d-flex p-0 align-items-center flex-wrap ml-auto" >
203207 { logged &&
You can’t perform that action at this time.
0 commit comments