RequestNetwork / request-scan

Request Scan app frontend
https://scan.request.network
MIT License
0 stars 0 forks source link

Display Sonner when search query is rejected #22

Open MantisClone opened 2 months ago

MantisClone commented 2 months ago

Problem

The search box will silently reject search queries that are empty or too short.

https://github.com/RequestNetwork/request-scan/blob/efc69d4089c632bc9a6f6fdcde8904fce829b8dc/src/components/search.tsx#L16

Proposed Solution

Disable button if empty Display a sonner when a search query is rejected because < 3.

rodrigopavezi commented 2 months ago

@MantisClone could you please give me an example? Maybe a video showing this issue? Thanks!

MantisClone commented 2 months ago

@rodrigopavezi I updated the issue description with more details. Please let me know what you think of the proposed solution - whether you agree or disagree.