permament routing on search
This commit is contained in:
@ -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 />
|
||||||
|
@ -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?"
|
||||||
|
Reference in New Issue
Block a user