Formatting and using for-of loop
This commit is contained in:
		
							parent
							
								
									09ec0a0bb0
								
							
						
					
					
						commit
						3e000358a7
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		|  | @ -14,10 +14,10 @@ const PreloadBackgroundAnimation = (): JSX.Element => { | |||
|     ]; | ||||
| 
 | ||||
|     // Pre-load images
 | ||||
|     for (let i = 0; i < images.length; i++) { | ||||
|       const img = new Image(); | ||||
|       img.src = images[i]; | ||||
|     for (const i of images) { | ||||
|       console.log(i); | ||||
|     } | ||||
| 
 | ||||
|     // Start animation
 | ||||
|     document.body.style.animation = "backgroundTransition 30s infinite"; | ||||
|   }, []); | ||||
|  | @ -62,7 +62,12 @@ function LoginPage(): JSX.Element { | |||
|             placeholder="Password" | ||||
|           /> | ||||
|           <Link to="/your-projects"> | ||||
|             <Button text="Login" onClick={() => {}} /> | ||||
|             <Button | ||||
|               text="Login" | ||||
|               onClick={(): void => { | ||||
|                 return; | ||||
|               }} | ||||
|             /> | ||||
|           </Link> | ||||
|         </div> | ||||
|       </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus