perf: memo GridCard, fuse save fns, fix slash tab active color
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@/components/ui/dialog'
|
||||
import { getConsent, setConsent } from '@/lib/consent/cookie-consent'
|
||||
import { getConsent, saveConsentWithSync } from '@/lib/consent/cookie-consent'
|
||||
import { toast } from 'sonner'
|
||||
|
||||
interface CookiePreferencesDialogProps {
|
||||
@@ -29,7 +29,7 @@ export function CookiePreferencesDialog({ open, onOpenChange }: CookiePreference
|
||||
}, [open])
|
||||
|
||||
const handleSave = () => {
|
||||
setConsent({ analytics, marketing: false })
|
||||
saveConsentWithSync(analytics, false)
|
||||
toast.success(t('consent.preferences.saved'))
|
||||
onOpenChange(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user