We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0fcf6 commit 2e91f93Copy full SHA for 2e91f93
src/Promo.tsx
@@ -1,5 +1,5 @@
1
import type { FunctionComponent } from 'preact';
2
-import { useEffect, useState } from 'preact/compat';
+import { useEffect, useState } from 'preact/hooks';
3
4
const dayLeftString = (days: number): string => {
5
if (days === 0) {
@@ -13,7 +13,7 @@ const dayLeftString = (days: number): string => {
13
14
const computeDaysLeft = () => {
15
const now = Date.now();
16
- return Math.floor((1752735600000 - now) / 86_400_000);
+ return Math.floor((1752714000000 - now) / 86_400_000);
17
};
18
19
const Promo: FunctionComponent = () => {
0 commit comments