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.
31 lines
630 B
TypeScript
31 lines
630 B
TypeScript
"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;
|