Remove useless list

This commit is contained in:
Will Hunt 2024-11-11 14:39:06 +00:00
parent 04ff724246
commit 8f05331703

View File

@ -128,25 +128,23 @@ export function ReactionPopupMenu({
</menu> </menu>
</section> </section>
<section style={{ marginLeft: "var(--cpd-separator-spacing)" }}> <section style={{ marginLeft: "var(--cpd-separator-spacing)" }}>
<li key="search" className={styles.reactionPopupMenuItem}> <Tooltip
<Tooltip label={
label={ isFullyExpanded ? t("action.show_less") : t("action.show_more")
isFullyExpanded ? t("action.show_less") : t("action.show_more") }
>
<CpdButton
iconOnly
aria-label={
isFullyExpanded
? t("action.show_less")
: t("action.show_more")
} }
> Icon={isFullyExpanded ? ChevronUpIcon : ChevronDownIcon}
<CpdButton kind="tertiary"
iconOnly onClick={() => setExpanded(!isFullyExpanded)}
aria-label={ />
isFullyExpanded </Tooltip>
? t("action.show_less")
: t("action.show_more")
}
Icon={isFullyExpanded ? ChevronUpIcon : ChevronDownIcon}
kind="tertiary"
onClick={() => setExpanded(!isFullyExpanded)}
/>
</Tooltip>
</li>
</section> </section>
</div> </div>
</> </>