9 | {
10 | this.props.links.map(link => {
11 | return (
12 |
17 | );
18 | })
19 | }
20 |
21 | );
22 | }
23 | }
24 |
25 | if (environment !== 'production') {
26 | Pills.propTypes = {
27 | links: T.array
28 | };
29 | }
30 |
31 | export default Pills;
32 |
--------------------------------------------------------------------------------
/src/root/components/portal.js:
--------------------------------------------------------------------------------
1 | import ReactDOM from 'react-dom';
2 |
3 | function Portal (props) {
4 | const { children } = props;
5 | return (
6 | ReactDOM.createPortal(
7 | children,
8 | document.body,
9 | )
10 | );
11 | }
12 |
13 | export default Portal;
14 |
--------------------------------------------------------------------------------
/src/root/components/preparedness/contact-per.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import Translate from '#components/Translate';
3 |
4 | export default class ContactPer extends React.Component {
5 | render () {
6 | return (
7 |