File tree Expand file tree Collapse file tree
src/frontend/src/pages/CreateChangeRequestPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,31 +182,31 @@ const CreateChangeRequestsView: React.FC<CreateChangeRequestViewProps> = ({
182182 } ;
183183
184184 return (
185- < PageLayout
186- stickyHeader
187- title = "New Change Request"
188- previousPages = { [ { name : 'Change Requests' , route : routes . CHANGE_REQUESTS } ] }
189- headerRight = {
190- < Box textAlign = "right" sx = { { mb : 2 } } >
191- < NERFailButton variant = "contained" onClick = { handleCancel } sx = { { mx : 1 } } >
192- Cancel
193- </ NERFailButton >
194- < NERSuccessButton variant = "contained" type = "submit" sx = { { mx : 1 } } >
195- Submit
196- </ NERSuccessButton >
197- </ Box >
198- }
185+ < form
186+ id = { 'create-standard-change-request-form' }
187+ onSubmit = { ( e ) => {
188+ e . preventDefault ( ) ;
189+ e . stopPropagation ( ) ;
190+ handleSubmit ( onSubmit ) ( e ) ;
191+ } }
192+ onKeyPress = { ( e ) => {
193+ e . key === 'Enter' && e . preventDefault ( ) ;
194+ } }
199195 >
200- < form
201- id = { 'create-standard-change-request-form' }
202- onSubmit = { ( e ) => {
203- e . preventDefault ( ) ;
204- e . stopPropagation ( ) ;
205- handleSubmit ( onSubmit ) ( e ) ;
206- } }
207- onKeyPress = { ( e ) => {
208- e . key === 'Enter' && e . preventDefault ( ) ;
209- } }
196+ < PageLayout
197+ stickyHeader
198+ title = "New Change Request"
199+ previousPages = { [ { name : 'Change Requests' , route : routes . CHANGE_REQUESTS } ] }
200+ headerRight = {
201+ < Box textAlign = "right" sx = { { mb : 2 } } >
202+ < NERFailButton variant = "contained" onClick = { handleCancel } sx = { { mx : 1 } } >
203+ Cancel
204+ </ NERFailButton >
205+ < NERSuccessButton variant = "contained" type = "submit" sx = { { mx : 1 } } >
206+ Submit
207+ </ NERSuccessButton >
208+ </ Box >
209+ }
210210 >
211211 < Grid container spacing = { 2 } display = "flex" justifyContent = "space-between" >
212212 < Grid container item spacing = { 2 } xs = { 5 } maxHeight = { 0 } sx = { { mt : - 5 } } >
@@ -313,8 +313,8 @@ const CreateChangeRequestsView: React.FC<CreateChangeRequestViewProps> = ({
313313 < CreateProposedSolutionsList proposedSolutions = { proposedSolutions } setProposedSolutions = { setProposedSolutions } />
314314 </ Grid >
315315 </ Grid >
316- </ form >
317- </ PageLayout >
316+ </ PageLayout >
317+ </ form >
318318 ) ;
319319} ;
320320
You can’t perform that action at this time.
0 commit comments