Attempt to fix note resizing with React keys and Muuri sync

This commit is contained in:
2026-01-24 19:52:13 +01:00
parent d59ec592eb
commit 8e35780717
48 changed files with 3369 additions and 279 deletions

View File

@@ -5,7 +5,7 @@ import { prisma } from '@/lib/prisma'
import { revalidatePath } from 'next/cache'
export type UserSettingsData = {
theme?: 'light' | 'dark' | 'auto' | 'sepia' | 'midnight'
theme?: 'light' | 'dark' | 'auto' | 'sepia' | 'midnight' | 'blue'
}
/**
@@ -60,7 +60,7 @@ export async function getUserSettings(userId?: string) {
})
return {
theme: (user?.theme || 'light') as 'light' | 'dark' | 'auto'
theme: (user?.theme || 'light') as 'light' | 'dark' | 'auto' | 'sepia' | 'midnight' | 'blue'
}
} catch (error) {
console.error('Error getting user settings:', error)