All files / pages DeveloperPage.jsx

100% Statements 20/20
100% Branches 1/1
100% Functions 1/1
100% Lines 20/20

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 2x   2x 2x 2x 2x   2x 2x 2x 2x 2x 2x       2x 2x         2x   1x  
import React from "react";
import BasicLayout from "main/layouts/BasicLayout/BasicLayout";
import { Inspector } from "react-inspector";
import { useSystemInfo } from "main/utils/systemInfo";
 
const DeveloperPage = () => {
  const { data: systemInfo } = useSystemInfo();
 
  return (
    <BasicLayout>
      <h2>Developer Info</h2>
      <p>This page is only visible to admin users.</p>
 
      {systemInfo && (
        <>
          <h3>GitHub Repository</h3>
          <p>
            <a href={systemInfo.sourceRepo} target="_blank" rel="noreferrer">
              {systemInfo.sourceRepo}
            </a>
          </p>
 
          <h3>System Info (JSON)</h3>
          <Inspector data={systemInfo} />
        </>
      )}
    </BasicLayout>
  );
};
 
export default DeveloperPage;