mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-19 17:39:39 +00:00
20 lines
637 B
JavaScript
20 lines
637 B
JavaScript
|
import React, { Component } from 'react';
|
||
|
import { repoID, siteRoot } from './constance';
|
||
|
|
||
|
class Search extends Component {
|
||
|
render() {
|
||
|
return (
|
||
|
<form id="top-search-form" method="get" action={siteRoot + 'search/'} className="hidden-sm-down search-form">
|
||
|
<input
|
||
|
type="text" className="search-input" name="q"
|
||
|
placeholder="Search files in this wiki"
|
||
|
/>
|
||
|
<input type="hidden" name="search_repo" value={repoID} />
|
||
|
<button type="submit" className="search-submit" aria-label="Submit"><span className="icon-search"></span></button>
|
||
|
</form>
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default Search;
|