aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-05 23:31:58 +0800
committercrupest <crupest@outlook.com>2020-08-05 23:31:58 +0800
commitb11c1da0d3c5220384e8d9b12a9ec5b9efd09a3a (patch)
tree3291dc7b53bbf4fee2a15176201c263964a6e698 /Timeline/ClientApp/src
parent2f39aae59e150e93748a60d6f8202d5c6790b3b7 (diff)
downloadtimeline-b11c1da0d3c5220384e8d9b12a9ec5b9efd09a3a.tar.gz
timeline-b11c1da0d3c5220384e8d9b12a9ec5b9efd09a3a.tar.bz2
timeline-b11c1da0d3c5220384e8d9b12a9ec5b9efd09a3a.zip
Code clean.
Diffstat (limited to 'Timeline/ClientApp/src')
-rw-r--r--Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx9
1 files changed, 2 insertions, 7 deletions
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<TManageItem> {
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<TManageItem, TTimeline>
-): React.ReactElement | null {
+>(props: TimelinePageTemplateProps<TManageItem>): React.ReactElement | null {
const { t } = useTranslation();
const { name } = props;