aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 9dbf21e7..3f3f1f60 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -14,6 +14,7 @@ import LoginButton from './components/LoginButton';
import Footer from './components/Footer';
import Avatar from './components/Avatar';
import Header from './components/Header';
+import SearchBox from './components/SearchBox';
import { me } from './api';
@@ -39,7 +40,9 @@ class App extends React.Component {
me().then(visitor => this.auth(visitor))
}
}
-
+ search = (searchString) => {
+ console.log(searchString)
+ }
render() {
const user = this.state.visitor;
return (
@@ -55,10 +58,7 @@ class App extends React.Component {
<div id="logo"><Link to="/">Juick</Link></div>
}
<div id="search">
- <form action="/">
- <input name="search" className="text"
- placeholder="Search..." />
- </form>
+ <SearchBox onSearch={this.search} />
</div>
<nav id="global">
<ul>