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

input-output-hk / lace / 9413237952

08 Feb 2024 01:46PM UTC coverage: 52.934% (-0.9%) from 53.839%
9413237952

push

github

f98d1b
rhyslbw
chore: bump version

1989 of 4673 branches covered (42.56%)

Branch coverage included in aggregate %.

4487 of 7561 relevant lines covered (59.34%)

56.03 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';
24✔
3
import ExpandIcon from '../../assets/icons/expand.component.svg';
24✔
4
import classnames from 'classnames';
24✔
5
import { Tooltip } from 'antd';
24✔
6

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

9
const RenderTooltipIfMultiWallet = ({ children, label }: { children: ReactNode; label: string }) => {
24✔
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 => (
24✔
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

© 2026 Coveralls, Inc