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

nilfalse / ctf / 5752977660

pending completion
5752977660

Pull #298

github

web-flow
Merge b6f7f6972 into da4e6f9f9
Pull Request #298: Update all of jest 27.5.1 → 29.6.2 (major)

0 of 266 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 613 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/packages/runtime/view/components/header_primary.tsx
1
import { FC } from 'react';
2

3
import { Report } from '../../lib/report';
4

5
import { Logo, LogoText } from './logo';
6
import { Paragraph } from './typography';
7

8
import './header_primary.css';
9

10
interface HeaderPrimaryProps {
11
  report: Report;
12
}
13

14
export const HeaderPrimary: FC<HeaderPrimaryProps> = ({ report }) => {
×
15
  if (report.isEmpty) {
×
16
    return (
×
17
      <div className="header-primary header-primary_empty">
18
        <Logo color="light" className="header-primary__icon" />
19
        <LogoText className="header-primary__logo" />
20

21
        <Paragraph
22
          variant="handwriting"
23
          size="l"
24
          className="header-primary__country"
25
        >
26
          Unknown country
27
        </Paragraph>
28
      </div>
29
    );
30
  }
31

32
  return (
×
33
    <div className="header-primary">
34
      <Logo color="light" className="header-primary__icon" />
35
      <LogoText className="header-primary__logo" />
36

37
      {report.request.host ? (
×
38
        <Paragraph size="xs" className="header-primary__host">
39
          You loaded {report.request.host} from
40
        </Paragraph>
41
      ) : null}
42

43
      <Paragraph
44
        variant="handwriting"
45
        size="l"
46
        className="header-primary__country"
47
      >
48
        {report.countryName}
49
      </Paragraph>
50
    </div>
51
  );
52
};
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