UI: usuniecie zbednego opisu nad lista aktualnosci
This commit is contained in:
@@ -2,7 +2,7 @@ import { useQueryClient } from '@tanstack/react-query';
|
||||
import { Megaphone } from 'lucide-react';
|
||||
import { markFeedAllRead, useFeed } from '../../api/queries';
|
||||
import { FeedItemRow } from '../../components/FeedItemRow';
|
||||
import { Button, Card, EmptyState, ErrorText, Loading, Muted } from '../../components/ui';
|
||||
import { Button, Card, EmptyState, ErrorText, Loading } from '../../components/ui';
|
||||
import { useToast } from '../../components/toast';
|
||||
import { useTopbar } from '../../topbar';
|
||||
|
||||
@@ -29,19 +29,13 @@ export default function Announcements() {
|
||||
return (
|
||||
<>
|
||||
<Card>
|
||||
{/* Tytuł strony jest w topbarze — tu tylko opis i akcje (bez duplikacji nagłówka). */}
|
||||
<div className="mb-3 flex flex-wrap items-start justify-between gap-3">
|
||||
<Muted className="text-[0.875rem]">
|
||||
Plany od trenera, ogłoszenia Twoich siłowni i komunikaty platformy.
|
||||
</Muted>
|
||||
{items.some((i) => !i.read) && (
|
||||
<div className="flex shrink-0 items-center gap-2">
|
||||
<Button variant="secondary" size="sm" type="button" onClick={() => void markAll()}>
|
||||
Oznacz wszystkie
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{items.some((i) => !i.read) && (
|
||||
<div className="mb-3 flex justify-end">
|
||||
<Button variant="secondary" size="sm" type="button" onClick={() => void markAll()}>
|
||||
Oznacz wszystkie
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{items.length === 0 ? (
|
||||
<EmptyState
|
||||
icon={Megaphone}
|
||||
|
||||
Reference in New Issue
Block a user