department-of-veterans-affairs/vets-website

View on GitHub
src/applications/static-pages/facilities/FacilityApiAlert.jsx

Summary

Maintainability
A
55 mins
Test Coverage
import React from 'react';

const FacilityApiAlert = () => (
  <va-alert status="info" visible>
    <h2 slot="headline">There was a problem retrieving locations</h2>
    <div>
      <p>
        Our location finder isn’t working right now. We’re sorry about that.
        Please check back a bit later. Or, if you need location details right
        away, you can try searching for&nbsp;&nbsp;
        <a
          href="https://www.google.com/maps/search/?api=1&query=VA+locations+near+me"
          target="_blank"
          rel="noopener noreferrer"
        >
          “VA locations near me” in Google Maps.
        </a>
      </p>
    </div>
  </va-alert>
);

export default FacilityApiAlert;