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
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>