Skip to content

Commit

Permalink
added the spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed May 10, 2024
1 parent 2828322 commit ab6ddf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/ui/spinner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const Spinner = () => {
return (
<div className="tw-bg-primary tw-w-10 tw-h-10 tw-my-10 tw-mx-auto tw-animate-[rotatePlane_1.2s_infinite_ease-in-out]" />
<div className="tw-bg-primary tw-w-10 tw-h-10 tw-my-10 tw-mx-auto tw-animate-[rotatePlane_1.2s_infinite_ease-in-out]">
<img src="https://res.cloudinary.com/vetswhocode/image/upload/v1627489505/vwc_kym0qt.gif" alt="Loading" className="tw-w-full tw-h-full" />
</div>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Login: PageProps = () => {

useEffect(() => {
if (isLoggedIn) {
void router.push("/profile");
void router.push("/login");
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [router]);
Expand All @@ -33,7 +33,7 @@ const Login: PageProps = () => {
<SEO title="Login Register" />
<Breadcrumb
pages={[{ path: "/", label: "home" }]}
currentPage="Profile"
currentPage="Login"
showTitle={false}
/>
<div className="tw-container tw-pb-15 md:tw-pb-20 lg:tw-pb-[100px] tw-grid tw-items-start lg:tw-grid-cols-2 tw-gap-7.5 lg:tw-gap-15">
Expand Down

0 comments on commit ab6ddf9

Please sign in to comment.