diff --git a/src/components/Help.jsx b/src/components/Help.jsx index 97f9e52..0fff8f8 100644 --- a/src/components/Help.jsx +++ b/src/components/Help.jsx @@ -13,7 +13,7 @@ export const Help = ({}) => (
Una volta compiuta la selezione, è possibile vedere la tabella delle
lezioni andando nella visualizzazione Orario (
-
Per via di eventuali preferenze personali, è possibile cambiare
diff --git a/src/components/OptionBar.jsx b/src/components/OptionBar.jsx
index d8078e8..e62e488 100644
--- a/src/components/OptionBar.jsx
+++ b/src/components/OptionBar.jsx
@@ -22,7 +22,7 @@ export const OptionBar = ({ view, setView }) => {
options={[
{
value: 'orario',
- label:
Non hai ancora selezionato nessun corso.
Clicca sui corsi nelle altre visuali per selezionarli e diff --git a/src/components/view/Schedule.jsx b/src/components/view/Schedule.jsx index c820bd0..22eddc4 100644 --- a/src/components/view/Schedule.jsx +++ b/src/components/view/Schedule.jsx @@ -46,7 +46,7 @@ const TransposePopup = ({ onClose }) => { const NoCourseWarning = () => { return ( -
Non hai ancora selezionato nessun corso.
Clicca sui corsi nelle altre visuali per selezionarli e diff --git a/src/main.jsx b/src/main.jsx index 8128d6d..c9c2667 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -92,9 +92,6 @@ async function loadCalendari(date) { const saturday = new Date(monday) saturday.setDate(monday.getDate() + 5) - console.log(monday.toISOString()) - console.log(saturday.toISOString()) - async function req(id) { // Almost directly copy-pasted from Chrome Dev Tools const req = await fetch( @@ -178,10 +175,7 @@ const App = ({}) => { // Use any random string of your choice // clearOldPersistentStates('e73cba02') - const [date, setDate] = usePersistentState( - 'date', - new Date('2023-10-24').toISOString() - ) + const [date, setDate] = useState(new Date().toISOString()) // Data Sources const [view, setView] = usePersistentState('view', 'magistrale') @@ -265,6 +259,22 @@ const App = ({}) => { }, }} /> + ) : timetables['tutti'].length === 0 ? ( +
+ Non esistono corsi per la settimana selezionata: + buone vacanze! 🎉 +
+
+ Per cambiare settimana puoi usare il widget
+ Calendario (
+
+ In versione mobile, il widget Calendario è
+ situato dentro il Menu (
+