diff --git a/src/components/card/index.tsx b/src/components/card/index.tsx index 3a70a88..714e71f 100644 --- a/src/components/card/index.tsx +++ b/src/components/card/index.tsx @@ -22,35 +22,15 @@ export function Card({ shelter, ...otherProps }: Props) { return ( - -
-

{shelter.name}

-
- {shelter.facebook && ( - } - label="Facebook" - /> - )} - - {shelter.instagram && ( - } - label="Instagram" - /> - )} - - {shelter.twitter && ( - } - label="Twitter" - /> - )} -
-
+ +

{shelter.name}

+ {availableVacancies > 0 ? ( +

+ Vagas disponíveis: {availableVacancies} +

+ ) : ( +

Vagas esgotadas

+ )} - {availableVacancies > 0 ? ( -

- Vagas disponíveis: {availableVacancies} -

- ) : ( -

- Vagas esgotadas -

- )} +
+ {shelter.facebook && ( + } + label="Facebook" + /> + )} + + {shelter.instagram && ( + } + label="Instagram" + /> + )} + + {shelter.twitter && ( + } + label="Twitter" + /> + )} +
);