From 6749bdb7b046147dcddf32130a190b37001e3347 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sun, 21 Feb 2021 20:01:19 +0530 Subject: [PATCH] use svg icons for search box --- assets/search-icons.svg | 29 +++++++++++++++++++++++++++++ lib/components/searchBox.tsx | 22 ++++++++++++---------- 2 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 assets/search-icons.svg diff --git a/assets/search-icons.svg b/assets/search-icons.svg new file mode 100644 index 00000000..48778e75 --- /dev/null +++ b/assets/search-icons.svg @@ -0,0 +1,29 @@ + + + + left arrow + + + + + + + + right arrow + + + + + + + + cancel + + + + + + + + + diff --git a/lib/components/searchBox.tsx b/lib/components/searchBox.tsx index 2b077e56..1cc2fda7 100644 --- a/lib/components/searchBox.tsx +++ b/lib/components/searchBox.tsx @@ -32,15 +32,15 @@ export default class SearchBox extends React.PureComponent { return (
input?.focus()} /> - this.props.prev(this.searchTerm)}> - {'←'} - - this.props.next(this.searchTerm)}> - {'→'} - - this.props.close()}> - {'✕'} - + this.props.prev(this.searchTerm)}> + + + this.props.next(this.searchTerm)}> + + + this.props.close()}> + +