fix missing vertical more icon thread setting

This commit is contained in:
Faisal Amir 2024-01-17 12:27:43 +07:00
parent 382cf48898
commit 8d61d1ecda

View File

@ -58,8 +58,9 @@ export default function CardSidebar({
> >
<span className="font-bold">{title}</span> <span className="font-bold">{title}</span>
<div className="flex"> <div className="flex">
{!asChild || {!asChild && (
(hideMoreVerticalAction && ( <>
{!hideMoreVerticalAction && (
<div <div
ref={setToggle} ref={setToggle}
className="cursor-pointer rounded-lg bg-zinc-100 p-2 pr-0 dark:bg-zinc-900" className="cursor-pointer rounded-lg bg-zinc-100 p-2 pr-0 dark:bg-zinc-900"
@ -67,7 +68,9 @@ export default function CardSidebar({
> >
<MoreVerticalIcon className="h-5 w-5" /> <MoreVerticalIcon className="h-5 w-5" />
</div> </div>
))} )}
</>
)}
<button <button
onClick={() => setShow(!show)} onClick={() => setShow(!show)}
className="flex w-full flex-1 items-center space-x-2 rounded-lg bg-zinc-100 px-3 py-2 dark:bg-zinc-900" className="flex w-full flex-1 items-center space-x-2 rounded-lg bg-zinc-100 px-3 py-2 dark:bg-zinc-900"