Added warning messages when date outside of lecture period

This commit is contained in:
2023-10-09 15:29:51 +02:00
parent c0b2894c22
commit c8172ad88a
6 changed files with 37 additions and 36 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { format } from 'date-fns'
import _ from 'lodash'
import { useEffect, useRef, useState } from 'preact/hooks'
import { prettyCourseName, WEEK_DAYS } from '../../utils.jsx'
import { Icon } from '../Icon.jsx'
export const Courses = ({
source,
@@ -53,7 +54,7 @@ export const Courses = ({
return (
<div class="course-view" ref={element}>
{hideOtherCourses && selection.length === 0 && (
<div class="no-courses-warning">
<div class="warning">
<p>Non hai ancora selezionato nessun corso.</p>
<p>
Clicca sui corsi nelle altre visuali per selezionarli e