summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_dropdown_menu.jsx
blob: 5f5107691442043d910af177376d864571445705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import {Dropdown} from 'react-bootstrap';
import React from 'react';

export default class RhsDropdownMenu extends Dropdown.Menu {
    constructor(props) { //eslint-disable-line no-useless-constructor
        super(props);
    }

    render() {
        return (
            <div
                className='dropdown-menu__content'
                onClick={this.props.onClose}
            >
                {super.render()}
            </div>
        );
    }
}