Fix search icon behavior and add new icon X
This commit is contained in:
parent
2207b78fff
commit
35c35c9964
2 changed files with 14 additions and 3 deletions
|
|
@ -250,10 +250,20 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
setSearch(event.target.value);
|
setSearch(event.target.value);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className="search-icon">
|
<div
|
||||||
|
className="search-icon "
|
||||||
|
onClick={() => {
|
||||||
|
if (search) {
|
||||||
|
setFilterData(data);
|
||||||
|
setSearch("");
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Search"
|
name={search ? "X" : "Search"}
|
||||||
className={"h-5 w-5 stroke-[1.5] text-primary"}
|
className={`h-5 w-5 stroke-[1.5] text-primary ${
|
||||||
|
search ? "cursor-pointer" : "cursor-default"
|
||||||
|
}`}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,7 @@ export const nodeNames: { [char: string]: string } = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const nodeIconsLucide: iconsType = {
|
export const nodeIconsLucide: iconsType = {
|
||||||
|
X: X,
|
||||||
Notify: Bell,
|
Notify: Bell,
|
||||||
ListFlows: Group,
|
ListFlows: Group,
|
||||||
ClearMessageHistory: FileClock,
|
ClearMessageHistory: FileClock,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue