<SmartTimeline> doesn't need to "filter" 3 of its smart components
This commit is contained in:
parent
fc12d02a8d
commit
3da97268d7
1 changed files with 3 additions and 6 deletions
|
@ -36,9 +36,6 @@ import { assert } from '../../util/assert';
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
const FilteredSmartTimelineItem = SmartTimelineItem as any;
|
const FilteredSmartTimelineItem = SmartTimelineItem as any;
|
||||||
const FilteredSmartTypingBubble = SmartTypingBubble 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 */
|
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||||
|
|
||||||
type ExternalProps = {
|
type ExternalProps = {
|
||||||
|
@ -65,7 +62,7 @@ function renderItem(
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderLastSeenIndicator(id: string): JSX.Element {
|
function renderLastSeenIndicator(id: string): JSX.Element {
|
||||||
return <FilteredSmartLastSeenIndicator id={id} />;
|
return <SmartLastSeenIndicator id={id} />;
|
||||||
}
|
}
|
||||||
function renderHeroRow(
|
function renderHeroRow(
|
||||||
id: string,
|
id: string,
|
||||||
|
@ -74,7 +71,7 @@ function renderHeroRow(
|
||||||
updateSharedGroups: () => unknown
|
updateSharedGroups: () => unknown
|
||||||
): JSX.Element {
|
): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<FilteredSmartHeroRow
|
<SmartHeroRow
|
||||||
id={id}
|
id={id}
|
||||||
onHeightChange={onHeightChange}
|
onHeightChange={onHeightChange}
|
||||||
unblurAvatar={unblurAvatar}
|
unblurAvatar={unblurAvatar}
|
||||||
|
@ -83,7 +80,7 @@ function renderHeroRow(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
function renderLoadingRow(id: string): JSX.Element {
|
function renderLoadingRow(id: string): JSX.Element {
|
||||||
return <FilteredSmartTimelineLoadingRow id={id} />;
|
return <SmartTimelineLoadingRow id={id} />;
|
||||||
}
|
}
|
||||||
function renderTypingBubble(id: string): JSX.Element {
|
function renderTypingBubble(id: string): JSX.Element {
|
||||||
return <FilteredSmartTypingBubble id={id} />;
|
return <FilteredSmartTypingBubble id={id} />;
|
||||||
|
|
Loading…
Add table
Reference in a new issue