@@ -85,8 +85,10 @@ export default class AddStudent extends Component {
8585 this . setState ( { loading : false } )
8686 this . props . history . push ( '/login' )
8787 }
88+ this . setState ( { loading : false } )
8889 throw new Error ( res . status )
8990 }
91+ this . setState ( { loading :false } )
9092 return res . json ( ) ;
9193 } )
9294 . then ( resData => {
@@ -104,7 +106,7 @@ export default class AddStudent extends Component {
104106 return ( this . state . loading ) ? < MyLoader loading = { this . state . loading } /> :
105107 < AuthContext . Consumer >
106108 { context => (
107- < div className = "d-lg-flex border justify-content-center p-3 hello " >
109+ < div className = "d-lg-flex border justify-content-center p-3" >
108110 < form onSubmit = { this . handleAddForm } >
109111 < div className = "row py-3" >
110112 < div className = "col" >
@@ -146,11 +148,11 @@ export default class AddStudent extends Component {
146148 </ div >
147149 < div className = "form-group" >
148150 < label htmlFor = "InputPhysics" > Physics Marks</ label >
149- < input type = "text " className = "form-control" ref = { this . physicsEl } id = "InputPhysics" placeholder = "Physics" required />
151+ < input type = "number " className = "form-control" ref = { this . physicsEl } id = "InputPhysics" placeholder = "Physics" required />
150152 < label htmlFor = "InputEnglish" > English Marks</ label >
151- < input type = "text " className = "form-control" ref = { this . englishEl } id = "InputEnglish" placeholder = "English" required />
153+ < input type = "number " className = "form-control" ref = { this . englishEl } id = "InputEnglish" placeholder = "English" required />
152154 < label htmlFor = "InputMaths" > Maths Marks</ label >
153- < input type = "text " className = "form-control" ref = { this . mathsEl } id = "InputMaths" placeholder = "Maths" required />
155+ < input type = "number " className = "form-control" ref = { this . mathsEl } id = "InputMaths" placeholder = "Maths" required />
154156 </ div >
155157 < div className = "form-group" >
156158 < label htmlFor = "InputSex" > Sex</ label >
@@ -170,6 +172,7 @@ export default class AddStudent extends Component {
170172 onRequestClose = { this . closeModal }
171173 style = { customStyles }
172174 contentLabel = "Date Picker Modal"
175+ ariaHideApp = { false }
173176 >
174177 < MyCalendar
175178 onChange = { this . onChange }
0 commit comments