Added last update, cache strategy, telegram fail notifications, teachers photos

This commit is contained in:
VityaSchel
2023-10-02 18:54:26 +04:00
parent f6daee6201
commit 755654cf9d
19 changed files with 579 additions and 124 deletions

View File

@@ -1,14 +1,16 @@
import type { Day as DayType } from '@/shared/model/day'
import { Day } from '@/widgets/schedule/day'
import { useRouter } from 'next/router'
export function Schedule({ days }: {
days: DayType[]
}) {
const group = useRouter().query['group']
return (
<div className="flex flex-col p-16 gap-14">
<div className="flex flex-col p-8 md:p-16 gap-12 md:gap-14">
{days.map((day, i) => (
<Day day={day} key={i} />
<Day day={day} key={`${group}_day${i}`} />
))}
</div>
)