diff --git a/web/containers/CardSidebar/index.tsx b/web/containers/CardSidebar/index.tsx index 4954cbd00..fb924672c 100644 --- a/web/containers/CardSidebar/index.tsx +++ b/web/containers/CardSidebar/index.tsx @@ -19,8 +19,14 @@ interface Props { children: ReactNode title: string asChild?: boolean + hideMoreVerticalAction?: boolean } -export default function CardSidebar({ children, title, asChild }: Props) { +export default function CardSidebar({ + children, + title, + asChild, + hideMoreVerticalAction, +}: Props) { const [show, setShow] = useState(true) const [more, setMore] = useState(false) const [menu, setMenu] = useState(null) @@ -52,15 +58,16 @@ export default function CardSidebar({ children, title, asChild }: Props) { > {title}
- {!asChild && ( -
setMore(!more)} - > - -
- )} + {!asChild || + (hideMoreVerticalAction && ( +
setMore(!more)} + > + +
+ ))}
)