• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / crdc-datahub-ui / 9163061041

20 May 2024 06:09PM UTC coverage: 30.327%. First build
9163061041

Pull #376

github

web-flow
Merge c6ff5a713 into 3a88433db
Pull Request #376: Fix missing eslint extends

877 of 3630 branches covered (24.16%)

Branch coverage included in aggregate %.

2 of 7 new or added lines in 7 files covered. (28.57%)

1534 of 4320 relevant lines covered (35.51%)

95.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/content/dataSubmissions/Controller.tsx
1
import React from "react";
2
import { useParams } from "react-router-dom";
3
import DataSubmission from "./DataSubmission";
4
import ListView from "./DataSubmissionsListView";
5

6
/**
7
 * Render the correct view based on the URL
8
 *
9
 * @param {void}
10
 * @returns {FC} - React component
11
 */
NEW
12
const DataSubmissionController = () => {
×
13
  const { submissionId, tab } = useParams();
×
14

15
  if (submissionId) {
×
16
    return <DataSubmission submissionId={submissionId} tab={tab} />;
×
17
  }
18

19
  return <ListView />;
×
20
};
21

22
export default DataSubmissionController;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc