File tree Expand file tree Collapse file tree 4 files changed +23
-11
lines changed
components/ShelterListItem Expand file tree Collapse file tree 4 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 1
1
import { useMemo } from 'react' ;
2
2
import { format } from 'date-fns' ;
3
3
import { useNavigate } from 'react-router-dom' ;
4
- import { ChevronRight } from 'lucide-react' ;
4
+ import { BadgeCheck , ChevronRight } from 'lucide-react' ;
5
5
6
6
import { IShelterListItemProps , IShelterAvailabilityProps } from './types' ;
7
7
import { cn , getAvailabilityProps , getSupplyPriorityProps } from '@/lib/utils' ;
@@ -38,12 +38,17 @@ const ShelterListItem = (props: IShelterListItemProps) => {
38
38
>
39
39
< ChevronRight className = "h-5 w-5" />
40
40
</ Button >
41
- < h3
42
- className = "font-semibold text-lg mr-12 hover:cursor-pointer hover:text-slate-500"
43
- onClick = { ( ) => navigate ( `/abrigo/${ data . id } ` ) }
44
- >
45
- { data . name }
46
- </ h3 >
41
+ < div className = "flex items-center gap-1" >
42
+ { data . verified && (
43
+ < BadgeCheck className = "h-5 w-5 stroke-white fill-red-600" />
44
+ ) }
45
+ < h3
46
+ className = "font-semibold text-lg mr-12 hover:cursor-pointer hover:text-slate-500"
47
+ onClick = { ( ) => navigate ( `/abrigo/${ data . id } ` ) }
48
+ >
49
+ { data . name }
50
+ </ h3 >
51
+ </ div >
47
52
< h6 className = { cn ( 'font-semibold text-md' , availabilityClassName ) } >
48
53
{ availability }
49
54
</ h6 >
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export interface IUseShelterData {
8
8
contact ?: string | null ;
9
9
petFriendly ?: boolean | null ;
10
10
prioritySum : number ;
11
+ verified : boolean ;
11
12
latitude ?: string | null ;
12
13
longitude ?: string | null ;
13
14
shelterSupplies : IUseShelterDataSupply [ ] ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export interface IUseSheltersData {
8
8
contact ?: string | null ;
9
9
petFriendly ?: boolean | null ;
10
10
prioritySum : number ;
11
+ verified : boolean ;
11
12
latitude ?: string | null ;
12
13
longitude ?: string | null ;
13
14
createdAt : string ;
Original file line number Diff line number Diff line change 1
1
import { useMemo } from 'react' ;
2
- import { ChevronLeft , Pencil } from 'lucide-react' ;
2
+ import { BadgeCheck , ChevronLeft , Pencil } from 'lucide-react' ;
3
3
import { useNavigate , useParams } from 'react-router-dom' ;
4
4
5
5
import { CardAboutShelter , Header , LoadingScreen } from '@/components' ;
@@ -53,9 +53,14 @@ const Shelter = () => {
53
53
}
54
54
/>
55
55
< div className = "p-4 flex flex-col max-w-5xl w-full" >
56
- < h1 className = "text-[#2f2f2f] font-semibold text-2xl" >
57
- { shelter . name }
58
- </ h1 >
56
+ < div className = "flex items-center gap-1" >
57
+ { shelter . verified && (
58
+ < BadgeCheck className = "h-6 w-6 stroke-white fill-red-600" />
59
+ ) }
60
+ < h1 className = "text-[#2f2f2f] font-semibold text-2xl" >
61
+ { shelter . name }
62
+ </ h1 >
63
+ </ div >
59
64
< div className = "flex flex-1 items-center justify-between" >
60
65
< h1 className = { cn ( availabilityClassName , 'font-semibold' ) } >
61
66
{ availability }
You can’t perform that action at this time.
0 commit comments