From 300d58e1ae56c262b548dab6da7e57a6249d6486 Mon Sep 17 00:00:00 2001 From: ranjan-27 Date: Mon, 11 Aug 2025 20:53:51 +0530 Subject: [PATCH 1/3] added cursor pointer effect --- src/components/HomePage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomePage.jsx b/src/components/HomePage.jsx index 6c0088e..a911fcc 100644 --- a/src/components/HomePage.jsx +++ b/src/components/HomePage.jsx @@ -135,7 +135,7 @@ export default function HomePage() { ))} -
{ - - const [dd, mm, yyyy] = form.date.split('/'); - return `${yyyy}-${mm}-${dd}`; - })() - } + value={() => { + // convert DD/MM/YYYY -> YYYY-MM-DD for input value + const [dd, mm, yyyy] = form.date.split('/'); + return `${yyyy}-${mm}-${dd}`; + } } onChange={(e) => handleInputChange('date', e.target.value)} - className={`w-full px-4 py-3 border-2 rounded-xl transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-900 dark:text-white ${ - errors.date - ? 'border-red-300 bg-red-50 dark:bg-red-900/20 dark:border-red-700' - : 'border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 bg-white dark:bg-gray-700' - }`} + className={`w-full px-4 py-3 border-2 rounded-xl transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-900 dark:text-white ${errors.date ? 'border-red-300 bg-red-50 dark:bg-red-900/20 dark:border-red-700' : 'border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 bg-white dark:bg-gray-700'}`} /> - {errors.date &&

{errors.date}

} + {errors.date &&

{errors.date}

}
-
- +