From 8bae4a980b315f7a29efe1ab0d09feccc63a1b55 Mon Sep 17 00:00:00 2001 From: Allison Levine Date: Thu, 7 Nov 2024 09:49:18 -0500 Subject: [PATCH] Revert type changes. --- client/reader/recent/recent-post-field.tsx | 2 +- client/reader/recent/recent-seen-field.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/reader/recent/recent-post-field.tsx b/client/reader/recent/recent-post-field.tsx index 4eee308e294055..22a709cdb8cc31 100644 --- a/client/reader/recent/recent-post-field.tsx +++ b/client/reader/recent/recent-post-field.tsx @@ -4,7 +4,7 @@ import type { ReaderPost, PostItem } from './types'; interface RecentPostFieldProps { item: ReaderPost; post: PostItem; - setSelectedItem: ( item: ReaderPost ) => void; + setSelectedItem: ( post: ReaderPost | null ) => void; } const RecentPostField: React.FC< RecentPostFieldProps > = ( { item, post, setSelectedItem } ) => { diff --git a/client/reader/recent/recent-seen-field.tsx b/client/reader/recent/recent-seen-field.tsx index c323f319aa52de..178e821ebf7afd 100644 --- a/client/reader/recent/recent-seen-field.tsx +++ b/client/reader/recent/recent-seen-field.tsx @@ -5,7 +5,7 @@ import type { PostItem, ReaderPost } from './types'; interface RecentSeenFieldProps { item: ReaderPost; post: PostItem; - setSelectedItem: ( item: ReaderPost ) => void; + setSelectedItem: ( post: ReaderPost | null ) => void; } const RecentSeenField: React.FC< RecentSeenFieldProps > = ( { item, post, setSelectedItem } ) => {