11import React , { Component } from 'react'
22import PropTypes from 'prop-types' ;
3- import { Modal , Button , Form } from 'react-bootstrap' ;
3+ import { Modal , Button , Form , Col } from 'react-bootstrap' ;
44import { MdVerifiedUser } from 'react-icons/md' ;
55import { FaUserSlash } from 'react-icons/fa' ;
66import { connect } from 'react-redux' ;
@@ -160,25 +160,24 @@ nextButton(){
160160 </ Form >
161161 ) ;
162162 const updateUsername = (
163- < Form >
164- < div className = "row " >
165- < div className = "col-md-9 " >
166- < Form . Group controlId = "formBasicEmail" >
163+ < Form className = "modal__form" >
164+ < Form . Row className = "modal__row " >
165+ < Form . Group as = { Col } className = "modal__group " >
166+ < Form . Label className = "modal__label" controlId = "formBasicEmail" / >
167167 < Form . Control
168168 type = "text"
169169 placeholder = "Enter your username"
170170 onChange = { this . onChange }
171171 defaultValue = { optionValue }
172172 name = "username"
173173 />
174- </ Form . Group >
175- </ div >
176- < div className = "col-md-3 " >
177- < Button className = "btn btn-light" type = "button " onClick = { this . handleSubmit } >
178- Save
174+ </ Form . Group >
175+ </ Form . Row >
176+ < div className = "modal__buttons " >
177+ < Button className = "modal__save " onClick = { this . handleSubmit } >
178+ < span className = "modal__buttontext" > Save</ span >
179179 </ Button >
180180 </ div >
181- </ div >
182181 </ Form >
183182 ) ;
184183
@@ -219,7 +218,7 @@ nextButton(){
219218 )
220219 const updatePassword = (
221220 < React . Fragment >
222- < form onSubmit = { this . handleSubmit } >
221+ < Form className = "modal__form" onSubmit = { this . handleSubmit } >
223222 < Step1
224223 currentStep = { this . state . currentStep }
225224 onChange = { this . onChange }
@@ -232,7 +231,7 @@ nextButton(){
232231
233232 { this . nextButton ( ) }
234233
235- </ form >
234+ </ Form >
236235 </ React . Fragment >
237236 ) ;
238237 const deactivateAccount = (
@@ -261,11 +260,21 @@ nextButton(){
261260 </ div >
262261 )
263262 return (
264- < Modal show = { this . state . show } onHide = { this . handleClose } animation = { false } centered >
265- < Modal . Header closeButton >
266- < Modal . Title > Update { " " + option } </ Modal . Title >
263+ < Modal
264+ show = { this . state . show }
265+ onHide = { this . handleClose }
266+ animation = { true }
267+ centered
268+ className = "modal"
269+ >
270+ < Modal . Header closeButton className = "modal__header" >
271+ < Modal . Title className = "modal__title" >
272+ < div className = "modal__main-title" >
273+ Update { " " + option }
274+ </ div >
275+ </ Modal . Title >
267276 </ Modal . Header >
268- < Modal . Body >
277+ < Modal . Body className = "modal__body" >
269278 { Boolean ( option === "name" ) ? updateName : null }
270279 { Boolean ( option === "email" ) ? updateEmail : null }
271280 { Boolean ( option === "username" ) ? updateUsername : null }
@@ -287,18 +296,24 @@ function Step1(props) {
287296 return null
288297 }
289298 return (
290- < div className = "form-group" >
291- < label htmlFor = "email" > Registered-Email address</ label >
292- < input
293- className = "form-control"
294- id = "email"
295- name = "email"
296- type = "text"
297- placeholder = "abc@gmail.com"
298- value = { props . email }
299- onChange = { props . onChange }
300- />
301- </ div >
299+ < Form . Row className = "modal__row" >
300+ < Form . Group as = { Col } className = "modal__group" >
301+ < Form . Label
302+ htmlFor = "email"
303+ className = "modal__label"
304+ >
305+ Registered-Email address
306+ </ Form . Label >
307+ < Form . Control
308+ id = "email"
309+ name = "email"
310+ type = "text"
311+ placeholder = "abc@gmail.com"
312+ value = { props . email }
313+ onChange = { props . onChange }
314+ />
315+ </ Form . Group >
316+ </ Form . Row >
302317 ) ;
303318}
304319
0 commit comments