fix redundant search button issue

This commit is contained in:
shakti97 2020-02-25 23:22:52 +05:30
parent ab7f4279bd
commit f13b9dcbbc
2 changed files with 5 additions and 7 deletions

View file

@ -47,13 +47,9 @@ class Searchbar extends React.Component {
const { searchValue } = this.state;
return (
<div className="searchbar">
<button
type="submit"
className="searchbar__button"
onClick={this.handleSearchEnter}
>
<div className="searchbar__button">
<InlineSVG className="searchbar__icon" src={searchIcon} />
</button>
</div>
<input
className="searchbar__input"
type="text"

View file

@ -22,7 +22,9 @@
width: #{31 / $base-font-size}rem;
height: #{36 / $base-font-size}rem;
position: absolute;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
border-right: solid 1px;
@include themify() {
border-right-color: getThemifyVariable('input-border-color');