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

CaptainFact / captain-fact-frontend / 20007847013

07 Dec 2025 05:32PM UTC coverage: 2.876% (-2.5%) from 5.41%
20007847013

push

github

Betree
refact: Move everythin to GraphQL, remove redux

38 of 2339 branches covered (1.62%)

Branch coverage included in aggregate %.

0 of 906 new or added lines in 41 files covered. (0.0%)

31 existing lines in 7 files now uncovered.

125 of 3328 relevant lines covered (3.76%)

0.11 hits per line

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

0.0
/app/components/App/MenuToggleSwitch.jsx
1
import PropTypes from 'prop-types'
2
import React from 'react'
3
import { Menu as MenuIcon, X as XIcon } from 'styled-icons/boxicons-regular'
4

5
import { useUserPreferences } from '../../contexts/UserPreferencesContext'
6

NEW
7
const MenuToggleSwitch = ({ toggleableIcon }) => {
×
NEW
8
  const { sidebarExpended, toggleSidebar } = useUserPreferences()
×
NEW
9
  return (
×
10
    <button
NEW
11
      onClick={() => toggleSidebar()}
×
12
      className="bg-none outline-none border-0 p-0 h-full w-[45px] cursor-pointer select-none text-[#4a4a4a] hover:text-[#252525]"
13
    >
14
      {sidebarExpended && toggleableIcon ? <XIcon /> : <MenuIcon />}
×
15
    </button>
16
  )
17
}
18

19
MenuToggleSwitch.propTypes = {
×
20
  toggleableIcon: PropTypes.bool.isRequired,
21
}
22

23
export default MenuToggleSwitch
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