mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
fix dropdown
This commit is contained in:
parent
de4011a27b
commit
78c234d0b5
@ -40,8 +40,8 @@ class AddStrategy extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div style={containerStyle}>
|
<div style={containerStyle}>
|
||||||
<div style={contentStyle}>
|
<div style={contentStyle}>
|
||||||
<strong>{item.name}</strong>
|
<strong>{item.name}</strong>
|
||||||
<small>{item.description}</small>
|
<small>{item.description}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -54,15 +54,14 @@ class AddStrategy extends React.Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Dropdown
|
||||||
<Dropdown
|
auto={false}
|
||||||
auto={false}
|
source={strats}
|
||||||
source={strats}
|
onChange={this.addStrategy}
|
||||||
onChange={this.addStrategy}
|
label="Select activation strategy to add"
|
||||||
label="Select activation strategy to add"
|
template={this.customItem}
|
||||||
template={this.customItem}
|
value={this.props.strategies[0].name}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user