<SmartTimeline> doesn't need to "filter" 3 of its smart components

This commit is contained in:
Evan Hahn 2021-05-06 14:15:04 -05:00 committed by GitHub
parent fc12d02a8d
commit 3da97268d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,9 +36,6 @@ import { assert } from '../../util/assert';
/* eslint-disable @typescript-eslint/no-explicit-any */
const FilteredSmartTimelineItem = SmartTimelineItem as any;
const FilteredSmartTypingBubble = SmartTypingBubble as any;
const FilteredSmartLastSeenIndicator = SmartLastSeenIndicator as any;
const FilteredSmartHeroRow = SmartHeroRow as any;
const FilteredSmartTimelineLoadingRow = SmartTimelineLoadingRow as any;
/* eslint-enable @typescript-eslint/no-explicit-any */
type ExternalProps = {
@ -65,7 +62,7 @@ function renderItem(
}
function renderLastSeenIndicator(id: string): JSX.Element {
return <FilteredSmartLastSeenIndicator id={id} />;
return <SmartLastSeenIndicator id={id} />;
}
function renderHeroRow(
id: string,
@ -74,7 +71,7 @@ function renderHeroRow(
updateSharedGroups: () => unknown
): JSX.Element {
return (
<FilteredSmartHeroRow
<SmartHeroRow
id={id}
onHeightChange={onHeightChange}
unblurAvatar={unblurAvatar}
@ -83,7 +80,7 @@ function renderHeroRow(
);
}
function renderLoadingRow(id: string): JSX.Element {
return <FilteredSmartTimelineLoadingRow id={id} />;
return <SmartTimelineLoadingRow id={id} />;
}
function renderTypingBubble(id: string): JSX.Element {
return <FilteredSmartTypingBubble id={id} />;