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

CBIIT / crdc-datahub-ui / 13768297073

10 Mar 2025 03:20PM UTC coverage: 59.96% (-0.3%) from 60.271%
13768297073

Pull #642

github

web-flow
Merge ccb08cb24 into 922b0b29f
Pull Request #642: CRDCDH-2458 Setup Storybook

3139 of 5627 branches covered (55.78%)

Branch coverage included in aggregate %.

3 of 69 new or added lines in 16 files covered. (4.35%)

4374 of 6903 relevant lines covered (63.36%)

145.82 hits per line

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

0.0
/src/layouts/index.tsx
1
import { FC, ReactNode } from "react";
2
import { Helmet } from "react-helmet-async";
3
import { Outlet } from "react-router-dom";
4
import { styled } from "@mui/material";
5
import Footer from "../components/Footer";
6
import Header from "../components/Header";
7
import ScrollButton from "../components/ScrollButton/ScrollButtonView";
8
import OverlayWindow from "../components/SystemUseWarningOverlay/OverlayWindow";
9
import InactivityDialog from "../components/InactivityDialog/InactivityDialog";
10
import { SearchParamsProvider } from "../components/Contexts/SearchParamsContext";
11

12
const StyledWrapper = styled("main")({
×
13
  minHeight: "400px",
14
  overflowX: "hidden",
15
});
16

NEW
17
export const HelmetWrapper: FC = () => (
×
NEW
18
  <Helmet defaultTitle="CRDC Submission Portal">
×
19
    <link rel="preconnect" href="https://fonts.gstatic.com" />
20
    <link
21
      href={
22
        "https://fonts.googleapis.com/css2?" +
23
        "family=Open+Sans:wght@400;600;700&" +
24
        "family=Poppins:wght@400;600;700&" +
25
        "family=Lato:wght@300;400;500;600;700&" +
26
        "family=Inter:wght@300;400;500;600;700&" +
27
        "family=Nunito+Sans:wght@400;500;600;700;800;900&" +
28
        "family=Nunito:wght@300;400;500;600;700;800;900&" +
29
        "family=Public+Sans:wght@300;400;500;600;700&" +
30
        "family=Rubik:wght@300;400;500;600;700&" +
31
        "family=Roboto:wght@400&" +
32
        "display=swap"
33
      }
34
      rel="stylesheet"
35
    />
36
  </Helmet>
37
);
38

39
type LayoutProps = {
40
  children?: ReactNode;
41
};
42

43
const Layout: FC<LayoutProps> = ({ children }) => (
×
44
  <SearchParamsProvider>
×
45
    <HelmetWrapper />
46
    <Header />
47
    <OverlayWindow />
48
    <StyledWrapper>
49
      {children || <Outlet />}
×
50
      <ScrollButton />
51
    </StyledWrapper>
52
    <Footer />
53
    <InactivityDialog />
54
  </SearchParamsProvider>
55
);
56

57
export default Layout;
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