Added tests for filter input field in Home
This commit is contained in:
parent
795466f7ca
commit
f64f01afa7
4 changed files with 112 additions and 31 deletions
|
@ -24,6 +24,12 @@ export default function Router() {
|
|||
})
|
||||
}
|
||||
|
||||
let homeProps = {
|
||||
teamUrl: config.api + '/team/',
|
||||
userUrl: config.api + '/user/',
|
||||
cb: teamCallback
|
||||
}
|
||||
|
||||
let userIdCallback = (el, teams) => {
|
||||
setMemberProps({
|
||||
url: config.api + '/user/' + el,
|
||||
|
@ -34,7 +40,7 @@ export default function Router() {
|
|||
return (
|
||||
<ReactRouter history={history}>
|
||||
<Switch>
|
||||
<Route exact path="/" render={() => <Home props={teamCallback} />} />
|
||||
<Route exact path="/" render={() => <Home props={homeProps} />} />
|
||||
|
||||
<Route exact path="/team" render={() => <Team props={teamProps} />} />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue