Fixed some imports and build

This commit is contained in:
cdricms
2025-02-10 09:42:24 +01:00
parent 27b73dbcab
commit bcb563fa1c
9 changed files with 110 additions and 25 deletions

View File

@@ -3,8 +3,8 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea";
import { ApiResponse } from "@/hooks/use-api";
import { API_URL } from "@/lib/constants";
import { ApiResponse } from "@/types/types";
import { useEffect, useState } from "react";
interface FormData {

View File

@@ -3,12 +3,10 @@ import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { useEffect, useState } from "react";
import { useState } from "react";
import { useRouter } from "next/navigation";
import useLogin from "@/hooks/use-login";
import { Loader2 } from "lucide-react";
import { API_URL } from "@/lib/constants";
import { ApiResponse } from "@/hooks/use-api";
export function LoginForm({
className,

View File

@@ -243,20 +243,20 @@ const Planning: React.FC<{
event={eventSelected}
onStartDateChange={(date) => {
setEventSelected((ev) => {
if (ev)
if (ev && date)
return {
...ev,
start: date,
start: format(date, "YYYY-MM-DD HH:MM"),
};
return ev;
});
}}
onEndDateChange={(date) => {
setEventSelected((ev) => {
if (ev)
if (ev && date)
return {
...ev,
end: date,
end: format(date, "YYYY-MM-DD HH:MM"),
};
return ev;
});