Toggle context menus on click and add active state
This commit is contained in:
parent
3eed6cb350
commit
a5497fcab8
9 changed files with 47 additions and 26 deletions
|
@ -923,14 +923,14 @@ export function SendStoryModal({
|
|||
}}
|
||||
theme={theme === ThemeType.dark ? Theme.Dark : Theme.Light}
|
||||
>
|
||||
{({ openMenu, onKeyDown, ref, menuNode }) => (
|
||||
{({ onClick, onKeyDown, ref, menuNode }) => (
|
||||
<div>
|
||||
<Button
|
||||
ref={ref}
|
||||
className="SendStoryModal__new-story__button"
|
||||
variant={ButtonVariant.Secondary}
|
||||
size={ButtonSize.Small}
|
||||
onClick={openMenu}
|
||||
onClick={onClick}
|
||||
onKeyDown={onKeyDown}
|
||||
>
|
||||
{i18n('icu:SendStoryModal__new')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue