This commit is contained in:
Maciej Kotowski committed 2021-10-03 22:20:42 +02:00
1 parent 6e83ef2753
commit e027ab3cb0
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ export const EventPreview = (props) => {
break;
default:
}
}, [label,color,props.type]);
}, [label,color,props.type,props.time]);
const getDate = (time) =>{
let date = new Date(time);
return date.toLocaleDateString(navigator.language)
-2
View File
@@ -5,9 +5,7 @@ function ShowPopup() {
const [timedPopup, setTimedPopup] = useState(false);
useEffect(() => {
setTimeout(() => {
setTimedPopup(true);
}, 3000);
}, []);
return (