Skip to content

Commit

Permalink
update search tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Dec 1, 2023
1 parent b3a15f5 commit 9661d68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/devhub/entity/post/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function defaultRenderItem(postId, additionalProps) {
...additionalProps,
referral: postId,
updateTagInParent: (tag) => {
if (typeof props.updateTagInput === "function") {
props.updateTagInput(tag);
}
getPostIds(tag);
},
}}
Expand Down
4 changes: 3 additions & 1 deletion src/devhub/entity/post/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ const tags = post.snapshot.labels ? (
>
<div
onClick={() => {
props.updateTagInParent(tag);
if (typeof props.updateTagInParent === "function") {
props.updateTagInParent(tag);
}
}}
className="d-flex gap-3 align-items-center"
style={{ cursor: "pointer", textDecoration: "none" }}
Expand Down
1 change: 1 addition & 0 deletions src/devhub/feature/post-search/panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ return (
term: state.term,
recency: props.recency,
transactionHashes: props.transactionHashes,
updateTagInput: (tag) => State.update({ tag }),
}}
/>
</PostContainer>
Expand Down

0 comments on commit 9661d68

Please sign in to comment.