Coursemology/coursemology2

View on GitHub
client/app/bundles/course/container/Sidebar/SidebarContainer.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function SidebarContainer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  (props, ref): JSX.Element => {
    const smallScreen = useMedia.MinWidth('md');
    const mobile = useMedia.PointerCoarse();

    const [pinned, setPinned] = useState<boolean>();
Severity: Minor
Found in client/app/bundles/course/container/Sidebar/SidebarContainer.tsx - About 1 hr to fix

Function AppearOnLeftGutter has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const AppearOnLeftGutter = (props: ContainerProps): JSX.Element => {
  const [guttered, setGuttered] = useState(true);
  const [inside, setInside] = useState(false);

  useLayoutEffect(() => {
Severity: Minor
Found in client/app/bundles/course/container/Sidebar/SidebarContainer.tsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status