forked from opencollective/opencollective-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset-password-completed.js
57 lines (52 loc) · 2.05 KB
/
reset-password-completed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Container from '../components/Container';
import { getI18nLink } from '../components/I18nFormatters';
import Image from '../components/Image';
import Page from '../components/Page';
import { P } from '../components/Text';
import { withUser } from '../components/UserProvider';
const ResetPasswordCompleted = ({ LoggedInUser, loadingLoggedInUser }) => {
return (
<Page noRobots showFooter={false}>
<Container pt={[4, 5]} pb={6} px={3} textAlign="center" data-cy="reset-password-success-page">
<Image src="/static/images/sign-in-illustration.png" width={624} height={372} />
<P fontSize="32px" lineHeight="40px" color="black.900" fontWeight={700}>
<FormattedMessage defaultMessage="Your password was updated." />
</P>
{!LoggedInUser && !loadingLoggedInUser && (
<Fragment>
<P fontSize="20px" lineHeight="28px" color="black.800" fontWeight={500} mt={4}>
<FormattedMessage
defaultMessage="You can now <Link>Sign In</Link> with it."
values={{
Link: getI18nLink({
href: '/signin',
}),
}}
/>
</P>
<P fontSize="16px" lineHeight="24px" color="black.800" fontWeight={500} my={4}>
<FormattedMessage
id="signinLinkSent."
defaultMessage="<Link>Learn more</Link> about our login system."
values={{
Link: getI18nLink({
href: 'https://docs.opencollective.com/help/product/log-in-system',
openInNewTab: true,
}),
}}
/>
</P>
</Fragment>
)}
</Container>
</Page>
);
};
ResetPasswordCompleted.propTypes = {
loadingLoggedInUser: PropTypes.bool.isRequired,
LoggedInUser: PropTypes.object,
};
export default withUser(ResetPasswordCompleted);