mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-05 17:22:11 +01:00
fixed rating error + fixed background not changing error
This commit is contained in:
1 parent
0f08b06a5a
commit
2ec732b4e5
2 files changed
+7
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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/');
|
||||
|
||||
Reference in new issue
Block a user