From 3e000358a76e3567e9f4d21fd5d115d5a01f40bf Mon Sep 17 00:00:00 2001
From: Imbus <>
Date: Thu, 7 Mar 2024 11:53:06 +0100
Subject: [PATCH] Formatting and using for-of loop
---
frontend/src/Pages/LoginPage.tsx | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/frontend/src/Pages/LoginPage.tsx b/frontend/src/Pages/LoginPage.tsx
index 1ad479b..d8ea651 100644
--- a/frontend/src/Pages/LoginPage.tsx
+++ b/frontend/src/Pages/LoginPage.tsx
@@ -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"
/>
-