Update components/SearchCommand.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
6232cbfa20
commit
c1bc573dcb
|
|
@ -57,9 +57,13 @@ export default function SearchCommand({ renderAs = 'button', label = 'Add stock'
|
|||
return (
|
||||
<>
|
||||
{renderAs === 'text' ? (
|
||||
<span onClick={() => setOpen(true)} className="search-text">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setOpen(true)}
|
||||
className="search-text"
|
||||
>
|
||||
{label}
|
||||
</span>
|
||||
</button>
|
||||
): (
|
||||
<Button onClick={() => setOpen(true)} className="search-btn">
|
||||
{label}
|
||||
|
|
|
|||
Loading…
Reference in New Issue