Formatting and using for-of loop

This commit is contained in:
Imbus 2024-03-07 11:53:06 +01:00
parent 09ec0a0bb0
commit 3e000358a7

View file

@ -14,10 +14,10 @@ const PreloadBackgroundAnimation = (): JSX.Element => {
]; ];
// Pre-load images // Pre-load images
for (let i = 0; i < images.length; i++) { for (const i of images) {
const img = new Image(); console.log(i);
img.src = images[i];
} }
// Start animation // Start animation
document.body.style.animation = "backgroundTransition 30s infinite"; document.body.style.animation = "backgroundTransition 30s infinite";
}, []); }, []);
@ -62,7 +62,12 @@ function LoginPage(): JSX.Element {
placeholder="Password" placeholder="Password"
/> />
<Link to="/your-projects"> <Link to="/your-projects">
<Button text="Login" onClick={() => {}} /> <Button
text="Login"
onClick={(): void => {
return;
}}
/>
</Link> </Link>
</div> </div>
</div> </div>