fixed rating error + fixed background not changing error

This commit is contained in:
nvrl committed 2026-02-18 07:47:58 +01:00
1 parent 0f08b06a5a
commit 2ec732b4e5
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from django.core.mail import send_mail
from django.conf import settings
from rest_framework import viewsets, permissions, status, filters
from rest_framework import viewsets, permissions, status, filters, serializers
from rest_framework.response import Response
from rest_framework.decorators import action
from django.db.models import Avg, Q
+6
View File
@@ -288,6 +288,12 @@ const App: React.FC = () => {
const theme = useMemo(() => getTheme(themeName), [themeName]);
useEffect(() => {
// Update body styles to match theme immediately (overriding index.html blocking script)
document.body.style.backgroundColor = theme.palette.background.default;
document.body.style.color = theme.palette.text.primary;
}, [theme]);
const handleMarkAllRead = async () => {
try {
await api.post('notifications/mark_all_read/');