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

deriv-com / deriv-com-v2 / 7326480845

26 Dec 2023 04:09AM CUT coverage: 84.692%. First build
7326480845

Pull #287

github

jia-deriv
chore: update

Signed-off-by: jia-deriv <jiawei@regentmarkets.com>
Pull Request #287: Testing

205 of 272 branches covered (0.0%)

Branch coverage included in aggregate %.

7524 of 8854 relevant lines covered (84.98%)

3.85 hits per line

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

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

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