Skip to content

Commit

Permalink
fix: issues with web app
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryOkafor committed Jun 4, 2024
1 parent 75c8e71 commit 528f562
Show file tree
Hide file tree
Showing 4 changed files with 991 additions and 1,016 deletions.
4 changes: 2 additions & 2 deletions web/src/app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default function Header({ loading }: HeadeProp = { loading: false }) {

useEffect(() => {
if (!isLoading && !session.isLoggedIn && pathName !== "/signup") {
router.replace("/signin");
// router.replace("/signin");
}
}, [isLoading, session.isLoggedIn, router, pathName]);
}, [router, pathName, isLoading, session.isLoggedIn]);

return (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Spinner } from "../components/providers";
import { Spinner } from "./providers";

export default function SpinnerLoading() {
return (
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/links/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { DocumentDuplicateIcon } from "@heroicons/react/24/outline";
import { Button } from "@material-tailwind/react";
import { Tooltip } from "@/app/components/providers";
import { useCopyToClipboard } from "usehooks-ts";
import SpinnerLoading from "../links/spinnerLoading";
import SpinnerLoading from "../components/spinnerLoading";

export default function Links() {
const [data, setData] = useState<[ShortLink] | null>(null);
Expand All @@ -29,7 +29,7 @@ export default function Links() {
});
}, []);

if (isLoading) return SpinnerLoading;
if (isLoading) return <SpinnerLoading />;

return (
<>
Expand Down
Loading

0 comments on commit 528f562

Please sign in to comment.