Add: #56 投稿のブーストボタンをクリックしたらポップアップメニューが出るオプション (#696)

* Add: #56 投稿のブーストボタンをクリックしたらポップアップメニューが出るオプション

* ブースト時に確認ダイアログを表示する設定との兼ね合いでメニュー項目を削除
This commit is contained in:
KMY(雪あすか) 2024-04-05 12:32:47 +09:00 committed by GitHub
parent a2dbc4a818
commit 69ba7a70d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 127 additions and 36 deletions

View file

@ -170,6 +170,7 @@ class Dropdown extends PureComponent {
title: PropTypes.string,
disabled: PropTypes.bool,
scrollable: PropTypes.bool,
active: PropTypes.bool,
status: ImmutablePropTypes.map,
isUserTouching: PropTypes.func,
onOpen: PropTypes.func.isRequired,
@ -284,6 +285,7 @@ class Dropdown extends PureComponent {
children,
renderItem,
renderHeader,
active,
} = this.props;
const open = this.state.id === openDropdownId;
@ -299,7 +301,7 @@ class Dropdown extends PureComponent {
icon={!open ? icon : 'close'}
iconComponent={iconComponent}
title={title}
active={open}
active={open || active}
disabled={disabled}
size={size}
onClick={this.handleClick}