polkadot-js/apps

View on GitHub
packages/page-explorer/src/NodeInfo/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function NodeInfo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function NodeInfo (): React.ReactElement {
  const { t } = useTranslation();
  const { api } = useApi();
  const [info, setInfo] = useState<Partial<Info>>({});
  const [nextRefresh, setNextRefresh] = useState(() => Date.now());
Severity: Minor
Found in packages/page-explorer/src/NodeInfo/index.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status