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

input-output-hk / lace / 8365257172

20 Mar 2024 08:11PM UTC coverage: 53.437% (-0.4%) from 53.839%
8365257172

push

github

9cf76f
pczeglik-iohk
test(extension): tawalletnofunds received some ada by mistake (#968)

2293 of 5275 branches covered (43.47%)

Branch coverage included in aggregate %.

5239 of 8820 relevant lines covered (59.4%)

54.34 hits per line

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

46.67
/apps/browser-extension-wallet/src/components/ExpandButton/ExpandButton.tsx
1
/* eslint-disable react/no-multi-comp */
2
import React, { ReactNode } from 'react';
72✔
3
import ExpandIcon from '../../assets/icons/expand.component.svg';
72✔
4
import classnames from 'classnames';
72✔
5
import { Tooltip } from 'antd';
72✔
6

7
import styles from './ExpandButton.module.scss';
72✔
8

9
const RenderTooltipIfMultiWallet = ({ children, label }: { children: ReactNode; label: string }) => {
72✔
10
  if (process.env.USE_MULTI_WALLET === 'true') {
×
11
    return <Tooltip title={label}>{children}</Tooltip>;
×
12
  }
13

14
  return <>{children}</>;
×
15
};
16

17
export const ExpandButton = ({ label, onClick }: { label: string; onClick: () => void }): React.ReactElement => (
72✔
18
  <RenderTooltipIfMultiWallet label={label}>
×
19
    <a
20
      onClick={onClick}
21
      href="#"
22
      className={classnames(styles.button, {
23
        [styles.multiWallet]: process.env.USE_MULTI_WALLET === 'true'
24
      })}
25
      data-testid="expand-button"
26
    >
27
      <ExpandIcon className={styles.icon} />
28
      {process.env.USE_MULTI_WALLET !== 'true' && <span className={styles.text}>{label}</span>}
×
29
    </a>
30
  </RenderTooltipIfMultiWallet>
31
);
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