diff options
author | crupest <crupest@outlook.com> | 2020-11-04 10:31:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-04 10:31:34 +0800 |
commit | b082a3ba08c9782c0834af77e6c3f0438534ad72 (patch) | |
tree | b4ebd1b485d3ce7f8388a68fc1d08e7d6be7885c /FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx | |
parent | c2d6a21c049d0f4f8b64a33eb60de7271465692c (diff) | |
download | timeline-b082a3ba08c9782c0834af77e6c3f0438534ad72.tar.gz timeline-b082a3ba08c9782c0834af77e6c3f0438534ad72.tar.bz2 timeline-b082a3ba08c9782c0834af77e6c3f0438534ad72.zip |
refactor: Refactor operation dialog.
Diffstat (limited to 'FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx b/FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx index 894b8195..33609158 100644 --- a/FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx +++ b/FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx @@ -33,15 +33,15 @@ const TimelineDeleteDialog: React.FC<TimelineDeleteDialog> = (props) => { inputScheme={[ { type: "text", - validator: (value) => { - if (value !== name) { - return "timeline.deleteDialog.notMatch"; - } else { - return null; - } - }, }, ]} + inputValidator={([value]) => { + if (value !== name) { + return { 0: "timeline.deleteDialog.notMatch" }; + } else { + return null; + } + }} onProcess={() => { return timelineService.deleteTimeline(name).toPromise(); }} |