We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76278fc commit 0ba4703Copy full SHA for 0ba4703
components/Search.tsx
@@ -20,7 +20,8 @@ export default function Search({ searchBarWrapperStyles }: SearchProps) {
20
21
const onSubmit: SubmitHandler<FormValues> = ({ searchQuery }) => {
22
let trimmedQuery = searchQuery.trim();
23
- if(trimmedQuery !== ''){ //Performs search only with non-empty strings
+ //Performs search only with non-empty strings
24
+ if (trimmedQuery !== '') {
25
router.push({ query: { ...router.query, q: trimmedQuery } });
26
}
27
};
@@ -43,7 +44,7 @@ export default function Search({ searchBarWrapperStyles }: SearchProps) {
43
44
type="button"
45
onClick={() => reset()}
46
>
- <GoX color="lightgrey" />
47
+ <GoX color="white" />
48
</button>
49
</div>
50
</form>
0 commit comments