🚚 reconstructing and fixing file structures
The reconstruction includes moving the Navbar component from shared to widget because Navbar is a group of elements, and removing the login-signup form due to changes in logic that will use a popup flow to improve the user experience without navigating to another page for authentication.
This commit is contained in:
30
widgets/navbar/ui/LoginAndSignup.tsx
Normal file
30
widgets/navbar/ui/LoginAndSignup.tsx
Normal file
@ -0,0 +1,30 @@
|
||||
"use client";
|
||||
|
||||
import { routes } from "@/shared/config/routes";
|
||||
import { Button, Link, NavbarItem } from "@heroui/react";
|
||||
import React from "react";
|
||||
|
||||
const LoginAndSignup = () => {
|
||||
return (
|
||||
<>
|
||||
<NavbarItem className="hidden lg:flex">
|
||||
<Link href={routes.login} className="font-medium">
|
||||
Login
|
||||
</Link>
|
||||
</NavbarItem>
|
||||
<NavbarItem>
|
||||
<Button
|
||||
color="primary"
|
||||
variant="solid"
|
||||
radius="sm"
|
||||
as={Link}
|
||||
href={routes.signup}
|
||||
>
|
||||
Sign Up
|
||||
</Button>
|
||||
</NavbarItem>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default LoginAndSignup;
|
||||
Reference in New Issue
Block a user