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

deriv-com / deriv-com-v2 / 6429273710

06 Oct 2023 08:24AM UTC coverage: 89.396%. Remained the same
6429273710

Pull #62

github

mohsen-deriv
chore: fix stat block padding
Pull Request #62: chore: fix stat block padding

84 of 118 branches covered (0.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2462 of 2730 relevant lines covered (90.18%)

4.79 hits per line

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

9.09
/libs/blocks/src/lib/navigation/navigation.content.tsx
1
import { useNavigation } from '@deriv-com/hooks';
2✔
2
import NavigationLink from './navigation.link';
2✔
3

2✔
4
export const NavigationContent = () => {
2✔
5
  const { activeItem } = useNavigation();
×
6
  return (
×
7
    <div className="my-general-xl grid w-full grid-cols-4 items-start gap-gap-2xl overflow-y-auto overscroll-y-contain py-general-lg">
×
8
      {activeItem && activeItem.type === 'nav-dropdown' ? (
×
9
        <>
×
10
          {activeItem.columns.map((column) => (
×
11
            <div
×
12
              key={column.id}
×
13
              className="flex flex-col justify-center gap-gap-lg"
×
14
            >
×
15
              {column.header && (
×
16
                <NavigationLink
×
17
                  item={column.header}
×
18
                  className="font-regular text-typography-subtle underline"
×
19
                />
×
20
              )}
×
21
              {column.items.map((subItem) => {
×
22
                return subItem.type === 'direct' ? (
×
23
                  <NavigationLink item={subItem} key={subItem.id} />
×
24
                ) : (
×
25
                  <div
×
26
                    key={subItem.id}
×
27
                    className="flex flex-col justify-center gap-gap-md"
×
28
                  >
×
29
                    <NavigationLink item={subItem.header} />
×
30
                    <div className="flex flex-col gap-gap-xl pl-general-md">
×
31
                      {subItem.subLinks.map((item) => (
×
32
                        <NavigationLink item={item} />
×
33
                      ))}
×
34
                    </div>
×
35
                  </div>
×
36
                );
×
37
              })}
×
38
            </div>
×
39
          ))}
×
40
        </>
×
41
      ) : null}
×
42
    </div>
×
43
  );
×
44
};
×
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