rznb9xaih: Add double-tap to like and the featured experts slide to the phone feed
This commit is contained in:
@@ -6,6 +6,7 @@ import { applyLikeOutcome, LikeError, sendLike } from "@/lib/like-client";
|
||||
import { firstLoadFailure, mergePosts, toCardPosts, upgradeVideos, type CardPost } from "@/lib/feed-model";
|
||||
import { PostError, publishAndConfirm } from "@/lib/post-client";
|
||||
import { DeleteError, sendDelete } from "@/lib/delete-client";
|
||||
import type { DiscoverExpert } from "@/lib/discover";
|
||||
import type { ComposerProps } from "./Composer";
|
||||
import { FeedView, type FeedStatus } from "./FeedView";
|
||||
import { useCompactLayout } from "./layout-context";
|
||||
@@ -16,11 +17,14 @@ export function Feed({
|
||||
onSignedOut,
|
||||
feedUserId,
|
||||
person,
|
||||
featuredExperts,
|
||||
}: {
|
||||
onSignedOut: () => void;
|
||||
feedUserId?: string | null;
|
||||
/** The signed-in person, shown beside the composer. */
|
||||
person?: ComposerProps["person"];
|
||||
/** Shown as a slide after the second post on phones. */
|
||||
featuredExperts?: DiscoverExpert[];
|
||||
}) {
|
||||
const [posts, setPosts] = useState<CardPost[]>([]);
|
||||
const [status, setStatus] = useState<FeedStatus>("loading");
|
||||
@@ -280,6 +284,7 @@ export function Feed({
|
||||
deleteErrors={deleteErrors}
|
||||
onSignedOut={onSignedOut}
|
||||
composer={{ value: draft, busy: posting, error: postFailed, file, onChange: changeDraft, onFile: changeFile, onSubmit: () => void publish(), person }}
|
||||
featuredExperts={featuredExperts}
|
||||
hasMore={!!nextCursor}
|
||||
sentinelRef={sentinel}
|
||||
listRef={list}
|
||||
|
||||
Reference in New Issue
Block a user