Define contact info at top of file; consolodate requires

This commit is contained in:
seotts 2021-12-07 13:30:48 -05:00
parent 4ce5656508
commit 8c890d5fd3

View file

@ -1,13 +1,26 @@
const React = require('react'); const React = require('react');
const FormattedMessage = require('react-intl').FormattedMessage;
const Page = require('../../components/page/www/page.jsx'); const Page = require('../../components/page/www/page.jsx');
const render = require('../../lib/render.jsx'); const render = require('../../lib/render.jsx');
const injectIntl = require('react-intl').injectIntl; const {FormattedMessage, injectIntl, intlShape} = require('react-intl');
const intlShape = require('react-intl').intlShape;
const InformationPage = require('../../components/informationpage/informationpage.jsx'); const InformationPage = require('../../components/informationpage/informationpage.jsx');
const helpEmailLink = (
<a href="mailto:help@scratch.mit.edu">
help@scratch.mit.edu
</a>
);
const foundationAddress = (
<div>
Scratch Foundation<br />
ATTN: Privacy Policy<br />
201 South Street<br />
Boston, MA, 02111
</div>
);
const PrivacyPolicyApps = props => ( const PrivacyPolicyApps = props => (
<InformationPage title={props.intl.formatMessage({id: 'privacyApps.title'})}> <InformationPage title={props.intl.formatMessage({id: 'privacyApps.title'})}>
<div className="inner info-inner"> <div className="inner info-inner">
@ -196,11 +209,7 @@ const PrivacyPolicyApps = props => (
<FormattedMessage <FormattedMessage
id="privacyApps.deletionDescription" id="privacyApps.deletionDescription"
values={{ values={{
helpEmail: ( helpEmail: helpEmailLink
<a href="mailto:help@scratch.mit.edu">
help@scratch.mit.edu
</a>
)
}} }}
/> />
</dd> </dd>
@ -220,11 +229,7 @@ const PrivacyPolicyApps = props => (
<FormattedMessage <FormattedMessage
id="privacyApps.eeaComplaint" id="privacyApps.eeaComplaint"
values={{ values={{
helpEmail: ( helpEmail: helpEmailLink
<a href="mailto:help@scratch.mit.edu">
help@scratch.mit.edu
</a>
)
}} }}
/> />
</p> </p>
@ -284,19 +289,12 @@ const PrivacyPolicyApps = props => (
<FormattedMessage <FormattedMessage
id="privacyApps.contactIntro" id="privacyApps.contactIntro"
values={{ values={{
helpEmail: ( helpEmail: helpEmailLink
<a href="mailto:help@scratch.mit.edu">
help@scratch.mit.edu
</a>
)
}} }}
/> />
</p> </p>
<p> <p>
Scratch Foundation<br /> {foundationAddress}
ATTN: Privacy Policy<br />
201 South Street<br />
Boston, MA, 02111
</p> </p>
</dl> </dl>
</section> </section>