creating login popup security check

Perform security checks on the login popup to minimize bugs in unexpected situations.
This commit is contained in:
2025-08-17 22:50:24 +07:00
parent b12a3211b6
commit a848d4dcb5
9 changed files with 112 additions and 5 deletions

View File

@ -5,12 +5,20 @@ import { Button, Link, NavbarItem } from "@heroui/react";
import React from "react";
const LoginAndSignup = () => {
const openLoginPopup = (e: any) => {
window.open(routes.login, "popup", "width=500,height=600");
};
return (
<>
<NavbarItem className="hidden lg:flex">
<Link href={routes.login} className="font-medium">
<Button
color="primary"
variant="light"
className="font-medium"
onPress={openLoginPopup}
>
Login
</Link>
</Button>
</NavbarItem>
<NavbarItem>
<Button

View File

@ -86,7 +86,7 @@ const NavbarUI = () => {
})}
</NavbarContent>
<NavbarContent justify="end">
<NavbarContent justify="end" className="gap-1">
<LoginAndSignup />
</NavbarContent>