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

deriv-com / deriv-com-v2 / 7041643579

30 Nov 2023 03:28AM UTC coverage: 85.023%. First build
7041643579

Pull #215

github

mohsen-deriv
Merge branch 'main' into michio/update-storybook-config-for-static-images
Pull Request #215: chore: updated storybook configs to fix images not showing up

193 of 259 branches covered (0.0%)

Branch coverage included in aggregate %.

6909 of 8094 relevant lines covered (85.36%)

3.36 hits per line

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

8.93
/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-3xl 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
                    <NavigationLink item={subItem} key={subItem.id} />
×
35
                  ) : (
×
36
                    <div
×
37
                      key={subItem.id}
×
38
                      className="flex flex-col justify-center gap-gap-md"
×
39
                    >
×
40
                      <NavigationLink item={subItem.header} />
×
41
                      <div className="flex flex-col gap-gap-xl pl-general-md">
×
42
                        {subItem.subLinks.map((item) => (
×
43
                          <NavigationLink item={item} key={item.id} />
×
44
                        ))}
×
45
                      </div>
×
46
                    </div>
×
47
                  );
×
48
                })}
×
49
              </div>
×
50
            </div>
×
51
          ))}
×
52
        </>
×
53
      ) : null}
×
54
    </div>
×
55
  );
×
56
};
×
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