summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorErnst Widerberg <ernst@sunet.se>2021-11-05 11:55:47 +0100
committerErnst Widerberg <ernst@sunet.se>2021-11-05 11:55:47 +0100
commitac9ba13ffb32472f58e7b68ef968c3578bc090fd (patch)
treeed1f72f5eaf81d7c213f982f264d6787edfd5a4c /src/components
parent993b9c4b4ecb6babeaa52145477378e392620dff (diff)
SearchForm: Move IconButton styling to global theme
Diffstat (limited to 'src/components')
-rw-r--r--src/components/SearchForm.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/SearchForm.js b/src/components/SearchForm.js
index 8b55e18..8c502a1 100644
--- a/src/components/SearchForm.js
+++ b/src/components/SearchForm.js
@@ -59,14 +59,8 @@ class SearchForm extends React.Component {
InputProps={{
endAdornment: (
<InputAdornment position="end">
- {this.state.value !== "" && (
- <IconButton
- onClick={this.clearSearch}
- sx={{
- backgroundColor:
- "inherit !important"
- }}
- >
+ {this.state.searchValue !== "" && (
+ <IconButton onClick={this.clearSearch}>
<ClearIcon />
</IconButton>
)}