|
|
@ -40,7 +40,7 @@ export function Event({ event, colorVariants, showDate = false }) {
|
|
|
|
export default function Agenda({ service, colorVariants, showDate }) {
|
|
|
|
export default function Agenda({ service, colorVariants, showDate }) {
|
|
|
|
const { widget } = service;
|
|
|
|
const { widget } = service;
|
|
|
|
const { events } = useContext(EventContext);
|
|
|
|
const { events } = useContext(EventContext);
|
|
|
|
const { i18n } = useTranslation();
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
|
|
if (!showDate) {
|
|
|
|
if (!showDate) {
|
|
|
|
return <div className=" text-center" />;
|
|
|
|
return <div className=" text-center" />;
|
|
|
@ -64,12 +64,11 @@ export default function Agenda({ service, colorVariants, showDate }) {
|
|
|
|
<Event
|
|
|
|
<Event
|
|
|
|
key="no-event"
|
|
|
|
key="no-event"
|
|
|
|
event={{
|
|
|
|
event={{
|
|
|
|
title: `No events for today!`,
|
|
|
|
title: t("calendar.noEventsToday"),
|
|
|
|
date: DateTime.now(),
|
|
|
|
date: DateTime.now(),
|
|
|
|
color: "gray",
|
|
|
|
color: "gray",
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
colorVariants={colorVariants}
|
|
|
|
colorVariants={colorVariants}
|
|
|
|
i18n={i18n}
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|