mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
fix react dep warning
This commit is contained in:
parent
4f9df3c9e7
commit
44c2a1ecbd
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export default function DateTime({ options }) {
|
|||
setDate(dateFormat.format(new Date()));
|
||||
}, 1000);
|
||||
return () => clearInterval(interval);
|
||||
}, [date, setDate]);
|
||||
}, [date, setDate, dateFormat]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue