Add language dropdown to compose in web UI (#18420)
This commit is contained in:
parent
c3fac61f56
commit
0cdb077570
15 changed files with 513 additions and 16 deletions
|
@ -17,11 +17,6 @@ export default class TextIconButton extends React.PureComponent {
|
|||
ariaControls: PropTypes.string,
|
||||
};
|
||||
|
||||
handleClick = (e) => {
|
||||
e.preventDefault();
|
||||
this.props.onClick();
|
||||
}
|
||||
|
||||
render () {
|
||||
const { label, title, active, ariaControls } = this.props;
|
||||
|
||||
|
@ -31,7 +26,7 @@ export default class TextIconButton extends React.PureComponent {
|
|||
aria-label={title}
|
||||
className={`text-icon-button ${active ? 'active' : ''}`}
|
||||
aria-expanded={active}
|
||||
onClick={this.handleClick}
|
||||
onClick={this.props.onClick}
|
||||
aria-controls={ariaControls} style={iconStyle}
|
||||
>
|
||||
{label}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue