mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
updated admin panel + side bar
This commit is contained in:
1 parent
22fe0674dd
commit
556bae3556
23 files changed
+2217
-637
No files matched your search
@@ -44,10 +44,6 @@ import RatingBadge from '../components/RatingBadge';
|
||||
import { PageShell, HeroBackdrop, SectionHeader, GlassCard, EmptyState } from '../components/ui';
|
||||
import { useToast } from '../hooks/useToast';
|
||||
|
||||
interface CommunityFeedProps {
|
||||
adminMode?: boolean;
|
||||
}
|
||||
|
||||
const SidebarCard: React.FC<{
|
||||
icon: React.ReactNode;
|
||||
title: React.ReactNode;
|
||||
@@ -73,7 +69,7 @@ const SidebarCard: React.FC<{
|
||||
</GlassCard>
|
||||
);
|
||||
|
||||
const CommunityFeed: React.FC<CommunityFeedProps> = ({ adminMode }) => {
|
||||
const CommunityFeed: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
useTitle(t('community.title'));
|
||||
const navigate = useNavigate();
|
||||
@@ -212,7 +208,7 @@ const CommunityFeed: React.FC<CommunityFeedProps> = ({ adminMode }) => {
|
||||
<RatingBadge score={rating.score} />
|
||||
</Box>
|
||||
|
||||
{adminMode && (
|
||||
{user?.is_superuser && (
|
||||
<Button
|
||||
size="small"
|
||||
variant="outlined"
|
||||
@@ -317,7 +313,7 @@ const CommunityFeed: React.FC<CommunityFeedProps> = ({ adminMode }) => {
|
||||
<Typography variant="body2">
|
||||
<RichText text={reply.text} />
|
||||
</Typography>
|
||||
{adminMode && (
|
||||
{user?.is_superuser && (
|
||||
<Button
|
||||
size="small"
|
||||
sx={{ minWidth: 0, py: 0, fontSize: '0.7rem' }}
|
||||
|
||||
Reference in new issue
Block a user