diff options
author | crupest <crupest@outlook.com> | 2020-08-05 23:31:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-05 23:31:58 +0800 |
commit | 2ac313b01f56c1ba0ad05e43d60dad6ce450d0af (patch) | |
tree | 5b8b95c5dc83913099935ec0697982c5d6b67026 /Timeline/ClientApp | |
parent | be9eb313ccad0832cb37e1c63e03608c47c2d171 (diff) | |
download | timeline-2ac313b01f56c1ba0ad05e43d60dad6ce450d0af.tar.gz timeline-2ac313b01f56c1ba0ad05e43d60dad6ce450d0af.tar.bz2 timeline-2ac313b01f56c1ba0ad05e43d60dad6ce450d0af.zip |
Code clean.
Diffstat (limited to 'Timeline/ClientApp')
-rw-r--r-- | Timeline/ClientApp/src/app/timeline/TimelinePageTemplate.tsx | 9 |
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;
|