grommet/grommet

View on GitHub
src/js/components/Calendar/stories/ShowAdjacentDays.js

Summary

Maintainability
A
1 hr
Test Coverage

Function ShowAdjacent has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ShowAdjacent = () => {
  const [date, setDate] = useState(new Date(2020, 6, 15).toDateString());

  const onSelect = (nextDate) => {
    setDate(nextDate !== date ? nextDate : undefined);
Severity: Minor
Found in src/js/components/Calendar/stories/ShowAdjacentDays.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status