From 3081bf9725ab4696906e4572ea411c08c6b7b82c Mon Sep 17 00:00:00 2001 From: sarthakdev143 Date: Mon, 7 Oct 2024 07:23:53 +0530 Subject: [PATCH] "Updated Account.js: changed import to include useEffect, replaced useLayoutEffect with useEffect" --- frontend/src/Components/Account/Account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/Account/Account.js b/frontend/src/Components/Account/Account.js index 90cce5c..aa1edae 100644 --- a/frontend/src/Components/Account/Account.js +++ b/frontend/src/Components/Account/Account.js @@ -1,8 +1,8 @@ -import React from 'react' +import React, { useEffect } from 'react' const Account = () => { - useLayoutEffect(() => { + useEffect(() => { alert("This Part is in Under Construction.") window.location.href = '/'; }, [])