mirror of
https://github.com/elyby/emails-renderer.git
synced 2025-05-31 14:12:05 +05:30
52 lines
1.5 KiB
JavaScript
52 lines
1.5 KiB
JavaScript
import { PropTypes } from 'react';
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
|
|
|
import { Userbar, Header, Content, Footer } from 'components/layout';
|
|
import { Table } from 'components/table';
|
|
import { Code } from 'components/blocks';
|
|
import { BitmapText } from 'components/text';
|
|
import { lightViolet } from 'components/ui/colors';
|
|
|
|
import styles from './styles';
|
|
import messages from './messages.intl.json';
|
|
|
|
export default function ForgotPassword({username, link, code}) {
|
|
return (
|
|
<div>
|
|
<Userbar />
|
|
|
|
<Header username={username} title={
|
|
<BitmapText message={messages.forget_the_password_image} />
|
|
} />
|
|
|
|
<Content>
|
|
<Table>
|
|
<tr>
|
|
<td>
|
|
<div style={styles.paragraph}>
|
|
<Message {...messages.shit_happens} />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<Code code={code} link={link} color={lightViolet} label={
|
|
<BitmapText message={messages.continue_image} />
|
|
} />
|
|
</td>
|
|
</tr>
|
|
</Table>
|
|
</Content>
|
|
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
ForgotPassword.propTypes = {
|
|
username: PropTypes.string,
|
|
link: PropTypes.string,
|
|
code: PropTypes.string
|
|
};
|