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

deriv-com / deriv-com-v2 / 7057093972

01 Dec 2023 07:29AM UTC coverage: 83.73%. First build
7057093972

Pull #224

github

Nuzhy-Deriv
Merge branch 'main' into nuzhy/language-switcher
Pull Request #224: nuzhy/language switcher

203 of 276 branches covered (0.0%)

Branch coverage included in aggregate %.

274 of 386 new or added lines in 23 files covered. (70.98%)

7249 of 8624 relevant lines covered (84.06%)

3.84 hits per line

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

89.13
/libs/blocks/src/lib/navigation/desktop/desktop.wrapper.tsx
1
import { FixContainer, FluidContainer } from '@deriv/quill-design';
2✔
2
import DesktopNavBlur from './desktop.blur';
2✔
3
import clsx from 'clsx';
2✔
4
import { ReactNode } from 'react';
2✔
5
import { useLanguageSwitcher, useNavigation } from '@deriv-com/hooks';
2✔
6

2✔
7
export const DesktopNavigationWrapper = ({
2✔
8
  children,
1✔
9
}: {
1✔
10
  children: ReactNode;
1✔
11
}) => {
1✔
12
  const { isBlurVisible, isDropContentOpen } = useNavigation();
1✔
13
  const { showLangContent } = useLanguageSwitcher();
1✔
14

1✔
15
  return (
1✔
16
    <div className={'fixed z-50 w-screen'}>
1✔
17
      <FixContainer
1✔
18
        className={clsx(
1✔
19
          'bg-background-primary-container',
1✔
20
          isDropContentOpen || showLangContent ? 'shadow-330' : '',
1!
21
        )}
1✔
22
      >
1✔
23
        <FluidContainer
1✔
24
          className={clsx(
1✔
25
            isDropContentOpen || showLangContent
1!
NEW
26
              ? 'max-h-[100vh]'
×
27
              : 'max-h-[80px]',
1✔
28
            'transition-max-height delay-0 duration-500 ease-in-out',
1✔
29
            'overflow-hidden',
1✔
30
          )}
1✔
31
        >
1✔
32
          {children}
1✔
33
        </FluidContainer>
1✔
34
      </FixContainer>
1✔
35
      {(isBlurVisible || showLangContent) && (
1!
NEW
36
        <DesktopNavBlur isVisible={isDropContentOpen || showLangContent} />
×
37
      )}
1✔
38
    </div>
1✔
39
  );
1✔
40
};
1✔
41

2✔
42
export default DesktopNavigationWrapper;
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