permament routing on search

This commit is contained in:
Alexey Kasyanchuk
2018-05-07 18:53:37 +03:00
parent 31a6a44184
commit bfc03b6f2d
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,6 @@ class Header extends React.Component {
marginLeft: 'auto', marginLeft: 'auto',
marginTop: '-10px', marginTop: '-10px',
color: window.peers > 0 ? '#42f445' : 'white', color: window.peers > 0 ? '#42f445' : 'white',
backgroundColor: 'white',
zIndex: 2 zIndex: 2
}}> }}>
<Search /> <Search />

View File

@ -69,6 +69,7 @@ class Search extends Component {
} }
search(oldSearch) { search(oldSearch) {
window.router('/')
this.setState({ this.setState({
searchingIndicator: true searchingIndicator: true
}); });
@ -273,7 +274,7 @@ class Search extends Component {
return ( return (
<div className="column w100p center"> <div className="column w100p center">
<div className='row inline w100p pad0-75' style={{maxWidth: '30em'}}> <div className='row inline w100p pad0-75' style={{maxWidth: '30em', backgroundColor: 'white', paddingTop: 0}}>
<TextField <TextField
hintText="Search torrent or file" hintText="Search torrent or file"
floatingLabelText="What to search?" floatingLabelText="What to search?"