show stats for admins only

This commit is contained in:
Dobromir Popov
2024-05-08 11:50:46 +03:00
parent 54be0439ca
commit 0e8d1284c2

View File

@ -21,7 +21,7 @@ function ContactsPage({ publishers, allPublishers }) {
return (
<Layout>
<ProtectedRoute allowedRoles={[UserRole.ADMIN, UserRole.POWERUSER, UserRole.USER]}>
<ProtectedRoute allowedRoles={[UserRole.ADMIN, UserRole.POWERUSER]}>
<div className="container mx-auto p-4">
<h1 className="text-xl font-semibold mb-4">Статистика </h1>
<h5 className="text-lg font-semibold mb-4">{publishers.length} участника с предпочитания за месеца (от {allPublishers.length} )</h5>