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 | 247f15813f914559846109c32f3a2c0e6d373fac (patch) | |
tree | edd36228f51bfdca2354cd5734028dd490a04350 /FrontEnd/src/app/views/timeline/TimelineDeleteDialog.tsx | |
parent | a581cf642fa0ff06c27e3d3d95af02aec3abd87d (diff) | |
download | timeline-247f15813f914559846109c32f3a2c0e6d373fac.tar.gz timeline-247f15813f914559846109c32f3a2c0e6d373fac.tar.bz2 timeline-247f15813f914559846109c32f3a2c0e6d373fac.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(); }} |