TP-24975 | Added Disabled check for search bar

This commit is contained in:
yashmantri
2023-04-26 13:26:52 +05:30
parent f55f77af76
commit a3b3a6331f

View File

@@ -32,7 +32,11 @@ const SmartSearch: FC<SmartSearchProps> = ({ updateSearchResults }) => {
placeholder={placeHolder}
containerClassName={cx(styles['input-container'])}
/>
<Button className={styles['button-wrapper']} onClick={handleButtonClick}>
<Button
className={styles['button-wrapper']}
disabled={!searchValue}
onClick={handleButtonClick}
>
<SearchIcon color="white" />
</Button>
</div>