Fix Completion interface and add test

This commit is contained in:
Shin'ya Ueoka 2019-02-15 20:37:02 +09:00
parent f43a2d2a9e
commit bc327e87a8
3 changed files with 144 additions and 3 deletions

View file

@ -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}

View file

@ -87,5 +87,4 @@ class CompletionComponent extends Component {
}
}
const mapStateToProps = state => state;
export default connect(mapStateToProps)(CompletionComponent);
export default CompletionComponent;