fix missing vertical more icon thread setting
This commit is contained in:
parent
382cf48898
commit
8d61d1ecda
@ -58,16 +58,19 @@ 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 && (
|
<>
|
||||||
<div
|
{!hideMoreVerticalAction && (
|
||||||
ref={setToggle}
|
<div
|
||||||
className="cursor-pointer rounded-lg bg-zinc-100 p-2 pr-0 dark:bg-zinc-900"
|
ref={setToggle}
|
||||||
onClick={() => setMore(!more)}
|
className="cursor-pointer rounded-lg bg-zinc-100 p-2 pr-0 dark:bg-zinc-900"
|
||||||
>
|
onClick={() => setMore(!more)}
|
||||||
<MoreVerticalIcon className="h-5 w-5" />
|
>
|
||||||
</div>
|
<MoreVerticalIcon className="h-5 w-5" />
|
||||||
))}
|
</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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user