diff --git a/web/src/components/BarberList.tsx b/web/src/components/BarberList.tsx index bfd286c..aaa42ee 100644 --- a/web/src/components/BarberList.tsx +++ b/web/src/components/BarberList.tsx @@ -1,44 +1,53 @@ -import { Card } from './ui/card'; import { Barber } from '../types'; import { User, Scissors } from 'lucide-react'; export const BarberList = ({ barbers }: { barbers: Barber[] }) => ( -
+
{barbers.map((b) => ( - +
+ {/* Foto circular */}
-
+
{b.imageUrl ? ( - {b.name} + {b.name} ) : ( - + )}
-
- + {/* Badge tesoura */} +
+
- + + {/* Nome */}
-

{b.name}

-
- {b.specialties.map((spec, i) => ( - - {spec} - - ))} - {b.specialties.length === 0 && ( - Especialista em tudo - )} -
+

+ {b.name} +

+ {b.specialties.length > 0 ? ( +

+ {b.specialties[0]} +

+ ) : ( +

Especialista

+ )}
- +
))} + {barbers.length === 0 && (
- +

Esta barbearia ainda não registou barbeiros.

)}
-); +); \ No newline at end of file