Fixed some imports and build
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user