Update components/SearchCommand.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Mr. Algorithm 2025-10-04 19:49:27 +05:30 committed by GitHub
parent 6232cbfa20
commit c1bc573dcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -57,9 +57,13 @@ export default function SearchCommand({ renderAs = 'button', label = 'Add stock'
return ( return (
<> <>
{renderAs === 'text' ? ( {renderAs === 'text' ? (
<span onClick={() => setOpen(true)} className="search-text"> <button
type="button"
onClick={() => setOpen(true)}
className="search-text"
>
{label} {label}
</span> </button>
): ( ): (
<Button onClick={() => setOpen(true)} className="search-btn"> <Button onClick={() => setOpen(true)} className="search-btn">
{label} {label}