All files / components/Nav Footer.jsx

100% Statements 19/19
100% Branches 2/2
100% Functions 1/1
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 311x 1x   1x 50x 50x 50x 50x 50x   50x 49x 49x 49x 49x 49x 49x 49x 49x         50x           50x  
import { Container } from "react-bootstrap";
import { useSystemInfo } from "main/utils/systemInfo";
 
export default function Footer() {
  const { data: systemInfo } = useSystemInfo();
  return (
    <footer className="bg-light pt-3 pt-md-4 pb-4 pb-md-5" data-testid="Footer">
      <Container>
        <p>
          This is a sample webapp using React with a Spring Boot backend.
          {systemInfo.sourceRepo ? (
            <span data-testid="footer-see-source-code">
              {" "}
              See the source code on{" "}
              <a
                href={`${systemInfo.sourceRepo}`}
                target="_blank"
                rel="noopener noreferrer"
              >
                Github.
              </a>
            </span>
          ) : (
            <span data-testid="footer-see-source-code" />
          )}
        </p>
      </Container>
    </footer>
  );
}