File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,28 +29,28 @@ export function EventEditor({ Event }: { Event: Models.IEvent }) {
2929 class = "absolute"
3030 onScale-before-close = { ( e ) => e . preventDefault ( ) }
3131 >
32-
33- < ScaleDropdownSelect
34- label = "Type"
35- value = { State . type }
36- disabled = { ! IsIncident ( Event . Type ) }
37- onScale-change = { ( e ) => Actions . setType ( e . target . value as EventType ) }
38- invalid = { ! ! Validation . type }
39- helperText = { Validation . type }
40- >
41- { Object . values ( EventType ) . slice ( 2 , 5 ) . map ( ( type , i ) =>
42- < ScaleDropdownSelectItem value = { type } key = { i } >
43- { type }
44- </ ScaleDropdownSelectItem > ) }
45- </ ScaleDropdownSelect >
46-
4732 < form
4833 className = "flex flex-col gap-y-6"
4934 autoComplete = "off"
5035 onSubmit = { ( e ) => {
5136 e . preventDefault ( ) ;
5237 OnSubmit ( ) . then ( ( ) => setFalse ( ) ) ;
5338 } } >
39+
40+ < ScaleDropdownSelect
41+ label = "Type"
42+ value = { State . type }
43+ disabled = { ! IsIncident ( Event . Type ) }
44+ onScale-change = { ( e ) => Actions . setType ( e . target . value as EventType ) }
45+ invalid = { ! ! Validation . type }
46+ helperText = { Validation . type }
47+ >
48+ { Object . values ( EventType ) . slice ( 2 , 5 ) . map ( ( type , i ) =>
49+ < ScaleDropdownSelectItem value = { type } key = { i } >
50+ { type }
51+ </ ScaleDropdownSelectItem > ) }
52+ </ ScaleDropdownSelect >
53+
5454 < ScaleTextField
5555 placeholder = "Please give the title of event"
5656 required
You can’t perform that action at this time.
0 commit comments