feat: apply various dashboard and auth fixes including demo trials, settings UI, and signup options
This commit is contained in:
@@ -59,7 +59,8 @@ export default function DashboardPage() {
|
||||
const isDark = typeof document !== 'undefined' && document.documentElement.classList.contains('dark');
|
||||
const themeParam = isDark ? 'dark' : 'light';
|
||||
|
||||
return `/api/og/dashboard?score=${encodeURIComponent(score)}&accuracy=${encodeURIComponent(accuracy)}&qs=${encodeURIComponent(qs)}&rank=${encodeURIComponent(rank)}&name=${encodeURIComponent(name)}&target=${target}&plan=${encodeURIComponent(plan)}&date=${encodeURIComponent(date)}&theme=${themeParam}`
|
||||
if (!user) return "";
|
||||
return `/api/og/dashboard/${user.id}?theme=${themeParam}&date=${encodeURIComponent(date)}`
|
||||
}
|
||||
|
||||
const handleDownload = async () => {
|
||||
|
||||
Reference in New Issue
Block a user