Deployment issues fix

This commit is contained in:
Stephanos A
2026-06-02 21:58:09 +03:00
parent c0e6e23c76
commit aa41cc54a3
16 changed files with 31 additions and 128 deletions

View File

@@ -1,15 +1,13 @@
'use client';
import { Train, LogOut, User, BookOpen, LogIn } from 'lucide-react';
import { Train, User, BookOpen, LogIn } from 'lucide-react';
import ThemeToggle from './ThemeToggle';
import Link from 'next/link';
import { useAuthStore } from '@/lib/auth-store';
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';
export default function AppHeader() {
const { user, isAuthenticated, initialize } = useAuthStore();
const router = useRouter();
useEffect(() => {
initialize();

View File

@@ -29,7 +29,7 @@ export default function DualCalendarPicker({
}: DualCalendarPickerProps) {
const [isOpen, setIsOpen] = useState(false);
const [calendarType, setCalendarType] = useState<'gregorian' | 'ethiopian'>('gregorian');
const [currentDate, setCurrentDate] = useState(value || new Date());
const [_currentDate, setCurrentDate] = useState(value || new Date());
const [viewMonth, setViewMonth] = useState(value?.getMonth() || new Date().getMonth());
const [viewYear, setViewYear] = useState(value?.getFullYear() || new Date().getFullYear());