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
|
// 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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue