report.js 856 B

12345678910111213141516171819202122232425262728293031323334
  1. import React from 'react';
  2. import styled from 'styled-components';
  3. import BodyWrapper from '../components/BodyWrapper';
  4. import { authUser } from '../actions';
  5. import { REPORT_EMAIL } from '../config';
  6. const Wrapper = styled.div`
  7. width: 600px;
  8. max-width: 97%;
  9. display: flex;
  10. flex-direction: column;
  11. align-items: flex-start;
  12. `;
  13. const ReportPage = () => (
  14. <BodyWrapper>
  15. <Wrapper>
  16. <h3>Report abuse</h3>
  17. <p>
  18. Report abuses, malware and phishing links to the below email address. We will take them down
  19. within 12 hours.
  20. </p>
  21. <p>{REPORT_EMAIL}</p>
  22. </Wrapper>
  23. </BodyWrapper>
  24. );
  25. ReportPage.getInitialProps = ({ req, reduxStore }) => {
  26. const token = req && req.cookies && req.cookies.token;
  27. if (token && reduxStore) reduxStore.dispatch(authUser(token));
  28. return {};
  29. };
  30. export default ReportPage;