fix: news section — remove duplicate title, add newspaper icon, hide views from users, fix cache invalidation

This commit is contained in:
Fringg
2026-03-23 15:00:11 +03:00
parent de5414f42e
commit b7ab2cff55
3 changed files with 4 additions and 16 deletions

View File

@@ -293,6 +293,7 @@ export default function AdminNews() {
onSuccess: () => {
haptic.success();
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
queryClient.invalidateQueries({ queryKey: ['news'] });
},
});
@@ -301,6 +302,7 @@ export default function AdminNews() {
onSuccess: () => {
haptic.success();
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
queryClient.invalidateQueries({ queryKey: ['news'] });
},
});
@@ -309,6 +311,7 @@ export default function AdminNews() {
onSuccess: () => {
haptic.success();
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
queryClient.invalidateQueries({ queryKey: ['news'] });
},
});