Skip to content

Commit 0ba4703

Browse files
committed
Formatted with prettier
1 parent 76278fc commit 0ba4703

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/Search.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default function Search({ searchBarWrapperStyles }: SearchProps) {
2020

2121
const onSubmit: SubmitHandler<FormValues> = ({ searchQuery }) => {
2222
let trimmedQuery = searchQuery.trim();
23-
if(trimmedQuery !== ''){ //Performs search only with non-empty strings
23+
//Performs search only with non-empty strings
24+
if (trimmedQuery !== '') {
2425
router.push({ query: { ...router.query, q: trimmedQuery } });
2526
}
2627
};
@@ -43,7 +44,7 @@ export default function Search({ searchBarWrapperStyles }: SearchProps) {
4344
type="button"
4445
onClick={() => reset()}
4546
>
46-
<GoX color="lightgrey" />
47+
<GoX color="white" />
4748
</button>
4849
</div>
4950
</form>

0 commit comments

Comments
 (0)