summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_dropdown_menu.jsx
blob: 6efaa9deaa812cd3011f0c2dafc42b09c75c012f (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 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>
        );
    }
}