Rename monthly view for consistency
This commit is contained in:
parent
bce2393d18
commit
c01e3a4664
@ -3,7 +3,7 @@ import dynamic from "next/dynamic";
|
|||||||
import { DateTime } from "luxon";
|
import { DateTime } from "luxon";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
|
|
||||||
import MonthlyView from "./monthly-view";
|
import Monthly from "./monthly";
|
||||||
import Agenda from "./agenda";
|
import Agenda from "./agenda";
|
||||||
|
|
||||||
import Container from "components/services/widget/container";
|
import Container from "components/services/widget/container";
|
||||||
@ -91,7 +91,7 @@ export default function Component({ service }) {
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
{(!widget?.view || widget?.view === "monthly") && (
|
{(!widget?.view || widget?.view === "monthly") && (
|
||||||
<MonthlyView
|
<Monthly
|
||||||
service={service}
|
service={service}
|
||||||
colorVariants={colorVariants}
|
colorVariants={colorVariants}
|
||||||
showDate={showDate}
|
showDate={showDate}
|
||||||
|
|||||||
@ -99,7 +99,7 @@ const dayInWeekId = {
|
|||||||
sunday: 7,
|
sunday: 7,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function MonthlyView({ service, colorVariants, showDate, setShowDate }) {
|
export default function Monthly({ service, colorVariants, showDate, setShowDate }) {
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
const { i18n } = useTranslation();
|
const { i18n } = useTranslation();
|
||||||
const { events } = useContext(EventContext);
|
const { events } = useContext(EventContext);
|
||||||
Loading…
Reference in New Issue
Block a user