pull/3258/head
Kevin 4 weeks ago
parent 674fad445d
commit 9f8a09f4bf

@ -1,10 +1,10 @@
import { useEffect, useState } from "react";
import { useTranslation } from "next-i18next";
import { DateTime } from "luxon";
import useWidgetAPI from "../../../utils/proxy/use-widget-api";
import Error from "../../../components/services/widget/error";
import Agenda from "../agenda";
import { DateTime } from "luxon";
export default function Label({ widget }) {
const { t } = useTranslation();

@ -1,10 +1,11 @@
import { useEffect, useState } from "react";
import { useTranslation } from "next-i18next";
import { DateTime } from "luxon";
import useWidgetAPI from "../../../utils/proxy/use-widget-api";
import Error from "../../../components/services/widget/error";
import Agenda from "../agenda";
import { DateTime } from "luxon";
export default function Project({ widget }) {
const { t } = useTranslation();
@ -32,7 +33,7 @@ export default function Project({ widget }) {
}
// Find the project with the given name
const project = projectsData.find((project) => project.name === widget.project_name);
const project = projectsData.find((index) => index.name === widget.project_name);
// Check if project exists
if (!project) {
@ -83,7 +84,7 @@ export default function Project({ widget }) {
}
// Find the project with the given name
const project = projectsData.find((project) => project.name === widget.project_name);
const project = projectsData.find((index) => index.name === widget.project_name);
// If project does not exist, display error component
if (!project) {

@ -1,12 +1,10 @@
import { useState } from "react";
import { useTranslation } from "next-i18next";
import { DateTime } from "luxon";
import classNames from "classnames";
import { IoMdCheckmarkCircleOutline } from "react-icons/io";
export default function Event({ task, colorVariants }) {
const [hover, setHover] = useState(false);
const { i18n } = useTranslation(); // Ensure you're getting 't' from useTranslation()
const renderEventTitle = () => {
if (task.url) {

Loading…
Cancel
Save