1717 * along with this program; if not, write to the Free Software Foundation,
1818 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919 */
20+ import {
21+ FlagMessage ,
22+ LargeCenteredLayout ,
23+ PageContentFontWrapper ,
24+ SubHeading ,
25+ Title ,
26+ } from 'design-system' ;
2027import * as React from 'react' ;
2128import { Helmet } from 'react-helmet-async' ;
2229import ResetPasswordForm from '../../components/common/ResetPasswordForm' ;
@@ -29,29 +36,29 @@ export interface ResetPasswordProps {
2936 currentUser : LoggedInUser ;
3037}
3138
32- export function ResetPassword ( { currentUser } : ResetPasswordProps ) {
39+ export function ResetPassword ( { currentUser } : Readonly < ResetPasswordProps > ) {
3340 return (
34- < div className = "page-wrapper-simple" >
35- < Helmet defer = { false } title = { translate ( 'my_account.reset_password.page' ) } / >
36- < div className = " page-simple" >
37- < h1 className = "text- center huge" > { translate ( 'my_account.reset_password' ) } </ h1 >
38- < p className = "text-center huge-spacer-top huge-spacer-bottom" >
39- { translate ( 'my_account.reset_password.explain ' ) }
40- </ p >
41-
42- < div className = "text-center" >
43- < h2 className = "big-spacer-bottom big" > { translate ( 'my_profile.password.title' ) } </ h2 >
44-
45- < ResetPasswordForm
46- user = { currentUser }
47- onPasswordChange = { ( ) => {
48- // Force a refresh for the backend to handle additional redirects.
49- window . location . href = ` ${ getBaseUrl ( ) } /` ;
50- } }
51- / >
41+ < LargeCenteredLayout >
42+ < PageContentFontWrapper className = "sw-body-sm" >
43+ < Helmet defer = { false } title = { translate ( 'my_account.reset_password. page' ) } / >
44+ < div className = "sw-flex sw-justify- center sw-mt-10" >
45+ < div >
46+ < Title > { translate ( 'my_account.reset_password' ) } </ Title >
47+ < FlagMessage variant = "warning" className = "sw-mb-4" >
48+ { translate ( 'my_account.reset_password.explain' ) }
49+ </ FlagMessage >
50+ < SubHeading > { translate ( 'my_profile.password.title' ) } </ SubHeading >
51+ < ResetPasswordForm
52+ user = { currentUser }
53+ onPasswordChange = { ( ) => {
54+ // Force a refresh for the backend to handle additional redirects.
55+ window . location . href = ` ${ getBaseUrl ( ) } /` ;
56+ } }
57+ />
58+ </ div >
5259 </ div >
53- </ div >
54- </ div >
60+ </ PageContentFontWrapper >
61+ </ LargeCenteredLayout >
5562 ) ;
5663}
5764
0 commit comments