@@ -137,7 +137,7 @@ Now let's create the form that allows our users to change their password.
137137``` coffee
138138import React, { Component } from " react" ;
139139import { Auth } from " aws-amplify" ;
140- import { FormGroup, FormControl, ControlLabel } from " react-bootstrap" ;
140+ import { FormGroup, FormControl, FormLabel } from " react-bootstrap" ;
141141import LoaderButton from " ../components/LoaderButton" ;
142142import " ./ChangePassword.css" ;
143143
@@ -192,7 +192,7 @@ export default class ChangePassword extends Component {
192192 <div className = " ChangePassword" >
193193 <form onSubmit = {this .handleChangeClick }>
194194 <FormGroup bsSize = " large" controlId = " oldPassword" >
195- <ControlLabel >Old Password</ControlLabel >
195+ <FormLabel >Old Password</FormLabel >
196196 <FormControl
197197 type = " password"
198198 onChange = {this .handleChange }
@@ -201,15 +201,15 @@ export default class ChangePassword extends Component {
201201 </FormGroup >
202202 <hr />
203203 <FormGroup bsSize = " large" controlId = " password" >
204- <ControlLabel >New Password</ControlLabel >
204+ <FormLabel >New Password</FormLabel >
205205 <FormControl
206206 type = " password"
207207 value = {this .state .password }
208208 onChange = {this .handleChange }
209209 />
210210 </FormGroup >
211211 <FormGroup bsSize = " large" controlId = " confirmPassword" >
212- <ControlLabel >Confirm Password</ControlLabel >
212+ <FormLabel >Confirm Password</FormLabel >
213213 <FormControl
214214 type = " password"
215215 onChange = {this .handleChange }
0 commit comments