Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Oct 26, 2024
2 parents ec28541 + cbf4f58 commit 2eefabe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 5 additions & 4 deletions src/containers/thread/PostThreadContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function PostThreadContainer(props: Props) {
const agent = useAgent();
const router = useRouter();
const { data: session } = useSession();

const { data: profile } = useProfile(session?.user.bskySession.handle);

const {
Expand Down Expand Up @@ -72,9 +71,11 @@ export default function PostThreadContainer(props: Props) {
setFilteredReplies(
replyChains
.map((replyArr) =>
replyArr.some((reply) => replyIncludes(reply.post.record, textSearch))
replyArr.some((reply) =>
replyIncludes(reply.post.record, textSearch),
),
)
.filter(Boolean).length
.filter(Boolean).length,
);
}, [replyChains, textSearch]);

Expand Down Expand Up @@ -170,7 +171,7 @@ export default function PostThreadContainer(props: Props) {
<>
{showReplies &&
replyArr.some((reply) =>
replyIncludes(reply.post.record, textSearch)
replyIncludes(reply.post.record, textSearch),
) && (
<div
className="border-skin-base border border-x-0 p-3 first:border-t-0 last:border-b md:border-x md:last:rounded-b-2xl odd:[&:not(:last-child)]:border-b-0 even:[&:not(:last-child)]:border-b-0"
Expand Down
9 changes: 3 additions & 6 deletions src/containers/thread/ThreadActionsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface Props {

export default function ThreadActionsContainer(props: Props) {
const { avatar, post, rounded } = props;
const postHasReplies = !!post.replyCount;

return (
<div>
Expand All @@ -22,11 +21,9 @@ export default function ThreadActionsContainer(props: Props) {
}`}
>
<ComposePrompt avatar={avatar} post={post} />
{postHasReplies && (
<div className="w-full sm:w-fit">
<Search placeholder="Search for replies" />
</div>
)}
<div className="w-full sm:w-fit ml-auto">
<Search placeholder="Search for replies" />
</div>
</div>
</div>
);
Expand Down

0 comments on commit 2eefabe

Please sign in to comment.