From 1994eefbb9f516e4cc616a347bb2a51d619c457a Mon Sep 17 00:00:00 2001
From: Rosyid Haryadi <rosyid_haryadi@protonmail.com>
Date: Sun, 1 Oct 2023 14:43:01 +0700
Subject: upd default time new entry

---
 src/App.jsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/App.jsx')

diff --git a/src/App.jsx b/src/App.jsx
index db340da..aa1ae6d 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -13,9 +13,10 @@ import { mdiGitlab } from '@mdi/js';
 
 function App() {
     const [baseSalary, setBaseSalary] = useState(0);
+    const initialTime = dayjs().set('hour', 17).set('minute', 30);
     const [listEntry, setListEntry] = useState(
         [
-            {id: 0, date: dayjs(), start: dayjs().set('hour', 17).set('minute', 30), finish: dayjs().set('hour', 18).set('minute', 30)},
+            {id: 0, date: dayjs(), start: initialTime, finish: initialTime},
         ]
     );
     const [removeDisabled, setRemoveDisabled] = useState(false);
@@ -47,8 +48,8 @@ function App() {
         const newEntry = {
             id: getLastId() + 1,
             date: dayjs(),
-            start: dayjs(),
-            finish: dayjs()
+            start: initialTime,
+            finish: initialTime
         }
         setListEntry((currentList) => [...currentList, newEntry]);
     }
-- 
cgit v1.2.3-70-g09d2

