src/js/components/Calendar/stories/ShowAdjacentDays.js
Function ShowAdjacent
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ShowAdjacent = () => {
const [date, setDate] = useState(new Date(2020, 6, 15).toDateString());
const onSelect = (nextDate) => {
setDate(nextDate !== date ? nextDate : undefined);