Add SOCKET_SEARCH action constant
This commit is contained in:
parent
35f806c18d
commit
82e2343d5b
5 changed files with 42 additions and 22 deletions
|
@ -35,6 +35,7 @@ export const SOCKET_PART = 'SOCKET_PART';
|
|||
export const SOCKET_PM = 'SOCKET_PM';
|
||||
export const SOCKET_QUIT = 'SOCKET_QUIT';
|
||||
export const SOCKET_SERVERS = 'SOCKET_SERVERS';
|
||||
export const SOCKET_SEARCH = 'SOCKET_SEARCH';
|
||||
export const SOCKET_TOPIC = 'SOCKET_TOPIC';
|
||||
export const SOCKET_USERS = 'SOCKET_USERS';
|
||||
export const TAB_HISTORY_POP = 'TAB_HISTORY_POP';
|
||||
|
|
|
@ -26,12 +26,15 @@ export default class Search extends Component {
|
|||
|
||||
return (
|
||||
<div className="search" style={style}>
|
||||
<input
|
||||
ref="input"
|
||||
className="search-input"
|
||||
type="text"
|
||||
onChange={this.handleSearch}
|
||||
/>
|
||||
<div className="search-input-wrap">
|
||||
<i className="icon-search" />
|
||||
<input
|
||||
ref="input"
|
||||
className="search-input"
|
||||
type="text"
|
||||
onChange={this.handleSearch}
|
||||
/>
|
||||
</div>
|
||||
<div className="search-results">{results}</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue