Fix lab1 split courses recognition, add snapping!

This commit is contained in:
2025-02-14 16:39:35 +01:00
parent 4c98950822
commit e9539b7f35
3 changed files with 15 additions and 46 deletions
+15 -6
View File
@@ -55,10 +55,10 @@ function specialEventPatches(eventi) {
if (
evento.nome === 'LABORATORIO DI INTRODUZIONE ALLA MATEMATICA COMPUTAZIONALE'
) {
if (evento.docenti[0].nome === 'GIOVANNI') {
if (evento.evento.dettagliDidattici[0].partizione.descrizione === 'CORSO A') {
evento.nome += ' (A)'
}
if (evento.docenti[0].nome === 'PAOLO') {
if (evento.evento.dettagliDidattici[0].partizione.descrizione === 'CORSO B') {
evento.nome += ' (B)'
}
}
@@ -194,9 +194,6 @@ const App = ({}) => {
const [helpVisible, setHelpVisible] = useState(false)
const [showMobileMenu, setShowMobileMenu] = useState(false)
// const groupIds = new Set(eventi.map(e => e.nome))
const toolOverlayVisible = selectedCourses.length > 0
const [theme, setTheme] = usePersistentState(
'theme',
'light'
@@ -263,13 +260,25 @@ const App = ({}) => {
vacanze! 🎉
</p>
<p>
Clicca sul bottone qua sotto per vedere la prima settimana
completa di lezioni:
</p>
<button
onClick={() => {
setDate('2025-03-03T00:00:00.000Z')
}}
>
Vai al 3 marzo! 🚀
</button>
{/* <p>
Per cambiare settimana puoi usare il widget Calendario (
<Icon name="calendar_month" />) in alto a destra
<br />
In versione mobile, il widget Calendario è situato dentro
il Menu (
<Icon name="menu" />)
</p>
</p> */}
</div>
) : (
<View