From 56ba0187339bf650bc2f278394b470df1e33f1d6 Mon Sep 17 00:00:00 2001 From: Kyrylo Hudym-Levkovych Date: Tue, 21 Nov 2023 09:32:28 +0200 Subject: [PATCH] refactor: add changes after review --- src/SearchField/SearchFieldAdvanced.jsx | 6 ++---- src/SearchField/SearchFieldClearButton.jsx | 2 +- src/SearchField/SearchFieldSubmitButton.jsx | 2 +- src/SearchField/index.jsx | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/SearchField/SearchFieldAdvanced.jsx b/src/SearchField/SearchFieldAdvanced.jsx index a15de6bc53..ac0fafe190 100644 --- a/src/SearchField/SearchFieldAdvanced.jsx +++ b/src/SearchField/SearchFieldAdvanced.jsx @@ -7,8 +7,6 @@ import classNames from 'classnames'; import { Search, Close } from '../../icons'; import newId from '../utils/newId'; -import Icon from '../Icon'; - export const SearchFieldContext = createContext(); const BUTTON_LOCATION_VARIANTS = [ @@ -189,8 +187,8 @@ SearchFieldAdvanced.defaultProps = { clearButton: 'clear search', }, icons: { - clear: , - submit: , + clear: Close, + submit: Search, }, onBlur: () => {}, onChange: () => {}, diff --git a/src/SearchField/SearchFieldClearButton.jsx b/src/SearchField/SearchFieldClearButton.jsx index e061b2205d..0dfd02d8f3 100644 --- a/src/SearchField/SearchFieldClearButton.jsx +++ b/src/SearchField/SearchFieldClearButton.jsx @@ -22,7 +22,7 @@ function SearchFieldClearButton(props) { return ( , - submit: , + clear: Close, + submit: Search, }, onBlur: () => {}, onChange: () => {},