SumOfUs/Champaign

View on GitHub
app/javascript/modules/EmailParliament/SearchError.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import './SearchError.css';

export default ({ error }) => {
  if (!error) return null;
  return (
    <div className="SearchError has-error">
      <p>
        We couldn't find your MP. Check that your postcode is correct, or get in
        touch with us if you think there might be an issue.
      </p>
    </div>
  );
};