Skip to content

Commit

Permalink
Fix: fixed build errors (#428)
Browse files Browse the repository at this point in the history
* Add landing (#426)

* Fix: updated landing page and removed signing in on website load

* removed tsconfig.json

* Fix: infinte reloading bug

* Fix: removed console.logs and implemented localstorage solution for staying signed in

* Fix: removed  which hindered build run

* Fix: added necessary variables in dependency array of useEffect

---------

Co-authored-by: ABHAY <[email protected]>
  • Loading branch information
subru-37 and ABHAY-100 authored Aug 24, 2024
1 parent 45a7b91 commit 9e28c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web-admin/src/pages/404.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Custom404 = () => {
Page Not Found
</Text>
<Text color={'gray.500'} mb={6}>
The page you're looking for does not seem to exist.
The page you are looking for does not seem to exist.
</Text>

<Link href="/" passHref>
Expand Down
2 changes: 1 addition & 1 deletion apps/web-admin/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Dashboard() {
useEffect(() => {
if (!isAuthenticated) router.replace('/');
else router.replace('/organizations');
}, [router.pathname]);
}, [router, isAuthenticated]);

return <DashboardLayout>{!isAuthenticated && <Landing />}</DashboardLayout>;
}
Expand Down

0 comments on commit 9e28c9f

Please sign in to comment.