All files / pages DeveloperPage.jsx

100% Statements 22/22
100% Branches 3/3
100% Functions 1/1
100% Lines 22/22

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 31 321x 1x 1x 1x   1x 10x   10x 10x 10x 10x 10x 10x 10x 10x 10x 10x   10x     10x 10x 10x       10x   1x  
import React from "react";
import BasicLayout from "main/layouts/BasicLayout/BasicLayout";
import { useSystemInfo } from "main/utils/systemInfo";
import { Inspector } from "react-inspector";
 
const DeveloperPage = () => {
  const { data: systemInfo } = useSystemInfo();
 
  return (
    <BasicLayout>
      <h2>Developer Info</h2>
      <p>
        <strong>Source Code: </strong>
        <a
          href={systemInfo?.sourceRepo}
          target="_blank"
          rel="noopener noreferrer"
          data-testid="developer-page-source-link"
        >
          {systemInfo?.sourceRepo}
        </a>
      </p>
      <h3>System Information</h3>
      <div data-testid="developer-page-system-info">
        <Inspector data={systemInfo} />
      </div>
    </BasicLayout>
  );
};
 
export default DeveloperPage;