diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx index f55aabf0..06838605 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx @@ -147,11 +147,7 @@ export const Interactions = (props: { ) : null} @@ -52,7 +52,9 @@ export const TagSelector = (props: { name={tag} selected onDelete={() => { - props.setSelectedTags(props.selectedTags.filter((t) => t !== tag)); + props.setSelectedTags( + props.selectedTags.filter((t) => t !== tag), + ); }} /> ))} @@ -148,7 +150,7 @@ export const TagSearchInput = (props: { return (
e.preventDefault()} asChild trigger={ } noArrow @@ -199,36 +201,42 @@ export const TagSearchInput = (props: { setIsOpen(true); }} /> - {props.selectedTags.length > 0 && ( - <> -
- {props.selectedTags.map((tag) => ( - { - props.setSelectedTags( - props.selectedTags.filter((t) => t !== tag), - ); - }} - /> - ))} -
-
- + {props.selectedTags.length > 0 ? ( +
+ {props.selectedTags.map((tag) => ( + { + props.setSelectedTags( + props.selectedTags.filter((t) => t !== tag), + ); + }} + /> + ))} +
+ ) : ( +
+ no tags selected +
)} +
+ {userInputResult && ( - { - selectTag(tagInputValue); - }} - /> + <> + { + selectTag(tagInputValue); + }} + /> + )} {filteredTags.map((tag, i) => ( void; }) => { return ( - +
+ +
); };