• 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

36.36
/libs/blocks/src/lib/navigation/navigation.link.tsx
1
import { CustomLink } from '@deriv-com/components';
2✔
2
import { DirectNavLink } from '@deriv-com/providers';
2✔
3
import { Text, qtJoin, qtMerge } from '@deriv/quill-design';
2✔
4

2✔
5
export interface NavigationLinkProps {
2✔
6
  item: DirectNavLink;
2✔
7
  className?: string;
2✔
8
}
2✔
9

2✔
10
export const NavigationLink: React.FC<NavigationLinkProps> = ({
2✔
11
  item,
×
12
  className,
×
13
}) => {
×
14
  return (
×
15
    <CustomLink
×
16
      href={item.href}
×
17
      className={qtMerge(
×
18
        'justify-center gap-gap-md text-body-md font-bold leading-body-md',
×
19
        item.icon && 'grid grid-cols-[24px_1fr]',
×
20
        !item.icon && item.description && 'flex flex-col',
×
21
        className,
×
22
      )}
×
23
    >
×
24
      {item.icon ? item.icon : null}
×
25
      {item.text}
×
26
      <Text size="sm" className={qtJoin(item.icon && 'col-start-2')}>
×
27
        {item.description}
×
28
      </Text>
×
29
    </CustomLink>
×
30
  );
×
31
};
×
32

2✔
33
export default NavigationLink;
2✔
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