1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Fix Dropdown Item import

This commit is contained in:
Sonja Happ 2020-07-08 17:02:29 +02:00
parent 417fbcbd03
commit c9d5cf5aa4

View file

@ -16,7 +16,7 @@
******************************************************************************/
import React from 'react';
import { Button, ButtonToolbar, DropdownButton, DropdownItem } from 'react-bootstrap';
import { Button, ButtonToolbar, DropdownButton, Dropdown } from 'react-bootstrap';
class ICAction extends React.Component {
constructor(props) {
@ -49,9 +49,9 @@ class ICAction extends React.Component {
render() {
const actionList = this.props.actions.map(action => (
<DropdownItem key={action.id} eventKey={action.id} active={this.state.selectedAction === action.id}>
<Dropdown.Item key={action.id} eventKey={action.id} active={this.state.selectedAction === action.id}>
{action.title}
</DropdownItem>
</Dropdown.Item>
));
return <div>