diff --git a/routes/index.tsx b/routes/index.tsx
index d0c393f..b797aee 100755
--- a/routes/index.tsx
+++ b/routes/index.tsx
@@ -3,7 +3,6 @@ import { define, State } from "../utils.ts";
import GuestHome from "../islands/GuestHome.tsx";
import MemberHome from "../islands/MemberHome.tsx";
import { page } from "fresh";
-import { getYear } from "../helpers.ts";
import { SessionCookie } from "./auth/callback.ts";
import { createPublicId } from "../helpers.ts";
import { getOnboardingStatus } from "../services/onboardingService.ts";
@@ -29,12 +28,16 @@ export const handler = define.handlers(async (ctx) => {
const onboardingStatus = stateData.user_id
? await getOnboardingStatus(stateData.user_id)
: null;
+ const now = new Date();
return page({
stateData,
urlRoute: ctx.state.urlRoute,
publicId,
stateId: state.stateId,
onboardingStatus,
+ serverYear: now.getFullYear(),
+ serverCalendarYear: now.getFullYear(),
+ serverCalendarMonth: now.getMonth() + 1,
});
});
@@ -47,6 +50,9 @@ export default define.page(
publicId: string;
stateId: string;
onboardingStatus: Awaited
>;
+ serverYear: number;
+ serverCalendarYear: number;
+ serverCalendarMonth: number;
};
},
) => {
@@ -54,11 +60,17 @@ export default define.page(
{data.stateData.user_id
- ?
+ ? (
+
+ )
: }
);
diff --git a/routes/landlord/dashboard/index.tsx b/routes/landlord/dashboard/index.tsx
index 4c495a3..75795da 100644
--- a/routes/landlord/dashboard/index.tsx
+++ b/routes/landlord/dashboard/index.tsx
@@ -278,7 +278,7 @@ export default define.page(
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
- d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
+ d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>