mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-20 21:16:19 +01:00
fix react dep warning
This commit is contained in:
parent
4f9df3c9e7
commit
44c2a1ecbd
@ -23,7 +23,7 @@ export default function DateTime({ options }) {
|
|||||||
setDate(dateFormat.format(new Date()));
|
setDate(dateFormat.format(new Date()));
|
||||||
}, 1000);
|
}, 1000);
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [date, setDate]);
|
}, [date, setDate, dateFormat]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
<div className="flex flex-col justify-center first:ml-0 ml-4">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user