ahbeng/NUSMods

View on GitHub
website/src/views/today/DayHeader.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function DayHeader has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const DayHeader: React.FC<Props> = (props) => {
  const { forecast } = props;
  const Icon = forecast ? getWeatherIcon(forecast) : null;

  const dates = castArray(props.date);
Severity: Minor
Found in website/src/views/today/DayHeader.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status