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

DamianMullins / Coinsly / #229

pending completion
#229

push

web-flow
Bump coveralls from 3.1.0 to 3.1.1

Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/compare/v3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: coveralls
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

5 of 78 branches covered (6.41%)

Branch coverage included in aggregate %.

11 of 266 relevant lines covered (4.14%)

0.15 hits per line

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

0.0
/src/components/Header.js
1
import React, { Fragment } from 'react';
2
import PropTypes from 'prop-types';
3
import styles from '../styles/Header.module.scss';
4
import buttonStyles from '../styles/buttons.module.scss';
5

6
const Header = ({
×
7
  user,
8
  userAuthenticated,
9
  toggleMenu,
10
  login,
11
  logout
12
}) => (
13
  <header className={styles.header}>
×
14
    {userAuthenticated ? (
×
15
      <button
16
        className={buttonStyles.button}
17
        type="button"
18
        onClick={toggleMenu}
19
      >
20
        Menu
21
      </button>
22
    ) : (
23
      <button className={buttonStyles.button} type="submit" onClick={login}>
24
        Log In
25
      </button>
26
    )}
27

28
    <h1 className={styles.siteTitle}>Coinsly</h1>
29

30
    <div className={styles.userWrapper}>
31
      {userAuthenticated && (
×
32
        <Fragment>
33
          <button
34
            className={buttonStyles.button}
35
            type="submit"
36
            onClick={logout}
37
          >
38
            Log out
39
          </button>
40

41
          <img
42
            className={styles.userAvatar}
43
            src={user.photoURL}
44
            alt={user.email}
45
          />
46
        </Fragment>
47
      )}
48
    </div>
49
  </header>
50
);
51

52
Header.propTypes = {
×
53
  userAuthenticated: PropTypes.bool.isRequired,
54
  user: PropTypes.object.isRequired,
55
  toggleMenu: PropTypes.func.isRequired,
56
  login: PropTypes.func.isRequired,
57
  logout: PropTypes.func.isRequired
58
};
59

60
export default Header;
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