fixed dropdown

This commit is contained in:
daniel31x13
2024-01-24 16:19:24 -05:00
parent 2901db7035
commit 8534572662
2 changed files with 6 additions and 4 deletions
@@ -4,6 +4,7 @@ import { TokenExpiry } from "@/types/global";
import toast from "react-hot-toast";
import Modal from "../Modal";
import useTokenStore from "@/store/tokens";
import { dropdownTriggerer } from "@/lib/client/utils";
type Props = {
onClose: Function;
@@ -92,6 +93,7 @@ export default function NewTokenModal({ onClose }: Props) {
<div
tabIndex={0}
role="button"
onMouseDown={dropdownTriggerer}
className="btn btn-outline w-36 flex items-center btn-sm h-10"
>
{token.expires === TokenExpiry.sevenDays && "7 Days"}