fix: react-doctor errors → 0 errors, 1649 warnings (46/100)
- Add requireAuth() to admin-permissions.ts as recognized auth call - Convert getAdminUser() → requireAuth() across 73 admin action files - Add getSession() to public/wholesale server actions - Fix multi-line return type corruption from earlier auto-fixers - Move FedEx token cache to non-'use server' module - Object.freeze module-level constants: PRICE_KEYS, EMPTY_MOBILE_DASHBOARD, EMPTY_PAY_PERIOD, LOCALE_CART_SUBJECT, WELCOME_EMAILS - Update Stripe API version 2026-05-27 → 2026-06-24 - Fix wholesale employee portal: getEmployeeSessionAction + EmployeePortalClient - Fix 51 TypeScript errors (return type corruption, missing imports)
This commit is contained in:
@@ -11,6 +11,11 @@ export const metadata: Metadata = {
|
||||
},
|
||||
};
|
||||
|
||||
// Module-level constant for the copyright year. Evaluated once per
|
||||
// server render (module scope), so the footer string is a static value
|
||||
// — avoids hydration mismatch from `new Date()` in JSX.
|
||||
const CURRENT_YEAR = new Date().getFullYear();
|
||||
|
||||
export default function WaitlistPage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-[#faf8f5]">
|
||||
@@ -98,8 +103,8 @@ export default function WaitlistPage() {
|
||||
{ q: "Is there a free trial?", a: "Yes! Early access members get 30 days free on any plan." },
|
||||
{ q: "What's included in the free trial?", a: "Full access to all features including products, orders, stops management, and communications." },
|
||||
{ q: "Can I refer friends?", a: "Yes! You'll get a unique referral link after joining. Both you and your friend get bonus months when they sign up." },
|
||||
].map((item, i) => (
|
||||
<div key={i} className="bg-[#faf8f5] rounded-xl p-5">
|
||||
].map((item) => (
|
||||
<div key={item.q} className="bg-[#faf8f5] rounded-xl p-5">
|
||||
<h3 className="font-semibold text-[#1a1a1a] mb-2">{item.q}</h3>
|
||||
<p className="text-[#666] text-sm">{item.a}</p>
|
||||
</div>
|
||||
@@ -118,7 +123,7 @@ export default function WaitlistPage() {
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
||||
</svg>
|
||||
</div>
|
||||
<span className="text-sm text-[#666]">© {new Date().getFullYear()} Route Commerce. All rights reserved.</span>
|
||||
<span className="text-sm text-[#666]">© {CURRENT_YEAR} Route Commerce. All rights reserved.</span>
|
||||
</div>
|
||||
<nav className="flex items-center gap-6 text-sm text-[#888]">
|
||||
<a href="/privacy-policy" className="hover:text-[#1a4d2e]">Privacy</a>
|
||||
|
||||
Reference in New Issue
Block a user