From 2ac313b01f56c1ba0ad05e43d60dad6ce450d0af Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 5 Aug 2020 23:31:58 +0800 Subject: Code clean. --- Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Timeline/ClientApp/src') diff --git a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx index afa9464a..eee00250 100644 --- a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx +++ b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx @@ -20,10 +20,7 @@ import { TimelinePageTemplateUIProps } from './TimelinePageTemplateUI'; import { TimelinePostSendCallback } from './TimelinePostEdit'; import { UiLogicError } from '../common'; -export interface TimelinePageTemplateProps< - TManageItem, - TTimeline extends TimelineInfo // TODO: Remove this. -> { +export interface TimelinePageTemplateProps { name: string; onManage: (item: TManageItem) => void; UiComponent: React.ComponentType< @@ -36,9 +33,7 @@ export interface TimelinePageTemplateProps< export default function TimelinePageTemplate< TManageItem, TTimeline extends TimelineInfo ->( - props: TimelinePageTemplateProps -): React.ReactElement | null { +>(props: TimelinePageTemplateProps): React.ReactElement | null { const { t } = useTranslation(); const { name } = props; -- cgit v1.2.3