Fix Completion interface and add test
This commit is contained in:
parent
f43a2d2a9e
commit
bc327e87a8
3 changed files with 144 additions and 3 deletions
|
@ -107,7 +107,11 @@ class ConsoleComponent extends Component {
|
|||
case 'command':
|
||||
case 'find':
|
||||
return <div className='vimvixen-console-command-wrapper'>
|
||||
<Completion size={COMPLETION_MAX_ITEMS} />
|
||||
<Completion
|
||||
size={COMPLETION_MAX_ITEMS}
|
||||
completions={this.props.completions}
|
||||
select={this.props.select}
|
||||
/>
|
||||
<Input
|
||||
ref={(c) => { this.input = c; }}
|
||||
mode={this.props.mode}
|
||||
|
|
|
@ -87,5 +87,4 @@ class CompletionComponent extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = state => state;
|
||||
export default connect(mapStateToProps)(CompletionComponent);
|
||||
export default CompletionComponent;
|
||||
|
|
Reference in a new issue