mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-14 00:40:30 +00:00
parent
6898faa3de
commit
3f1229555e
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ export function Event({ event, colorVariants, showDate = false }) {
|
|||
export default function Agenda({ service, colorVariants, showDate }) {
|
||||
const { widget } = service;
|
||||
const { events } = useContext(EventContext);
|
||||
const { i18n } = useTranslation();
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (!showDate) {
|
||||
return <div className=" text-center" />;
|
||||
|
@ -64,12 +64,11 @@ export default function Agenda({ service, colorVariants, showDate }) {
|
|||
<Event
|
||||
key="no-event"
|
||||
event={{
|
||||
title: `No events for today!`,
|
||||
title: t("calendar.noEventsToday"),
|
||||
date: DateTime.now(),
|
||||
color: "gray",
|
||||
}}
|
||||
colorVariants={colorVariants}
|
||||
i18n={i18n}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue