Files
test_task_crm/frontend/src/components/crm/task-status-pill.tsx
T
Artem Kashaev 8718df9686 feat: add deals, tasks, and organizations pages with CRUD functionality
- Implemented DealsPage with deal creation, updating, and filtering features.
- Added OrganizationsPage to manage and switch between organizations.
- Created TasksPage for task management, including task creation and filtering.
- Updated router to include new pages for navigation.
2025-12-01 13:46:56 +05:00

13 lines
471 B
TypeScript

import { CheckCircle2, CircleDashed } from 'lucide-react'
interface TaskStatusPillProps {
done: boolean
}
export const TaskStatusPill = ({ done }: TaskStatusPillProps) => (
<span className="inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-semibold">
{done ? <CheckCircle2 className="h-4 w-4 text-emerald-500" /> : <CircleDashed className="h-4 w-4 text-amber-500" />}
{done ? 'Выполнена' : 'Открыта'}
</span>
)