website/src/views/today/BeforeLessonCard.tsx
Function BeforeLessonCard
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BeforeLessonCard: React.FC<Props> = (props) => {
const { nextLesson, currentTime, marker } = props;
const nextLessonDate = getStartTimeAsDate(nextLesson);
const hoursTillNextLesson = differenceInHours(nextLessonDate, props.currentTime);