File tree 4 files changed +18
-11
lines changed 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,12 @@ const PetInfoCard: React.FC<{ petApiData: PetApiData }> = ({ petApiData }) => {
9
9
10
10
const cardClickHandler = ( ) => {
11
11
const petType = petApiData . apiType === PET_API_TYPE . DOG ? "dog" : "cat"
12
- const destURL = `/pet_detail?pet_type=${ petType } &pet_id=${ petApiData . id } &breed_id=${ petApiData . breedData ?. breed_id } `
13
- console . log ( "PetInfoCard - destURL: " , destURL )
14
-
12
+ const destURL = `
13
+ /pet_detail?
14
+ pet_type=${ petType } &
15
+ pet_id=${ petApiData . id } &
16
+ breed_id=${ petApiData . breedData ?. breed_id }
17
+ `
15
18
navTo ( destURL )
16
19
}
17
20
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import React from 'react'
2
2
3
3
const PetReleaseSection : React . FC = ( ) => {
4
4
return (
5
- < div > PetReleaseSection</ div >
5
+ < section className = '' >
6
+ </ section >
6
7
)
7
8
}
8
9
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ const AdoptionGalleryPage: React.FC = () => {
35
35
{ optionName : "Large" , isChecked : true }
36
36
] )
37
37
38
- // const fetchPetApiData = async (): Promise<void> => {
39
- // const allPetData = await Utils.getBatchPetAPIData(10)
40
- // Utils.durstenfeldShuffle(allPetData)
41
- // setPetData(allPetData)
42
- // setIsLoading(false)
43
- // }
44
- // fetchPetApiData()
38
+ const fetchPetApiData = async ( ) : Promise < void > => {
39
+ const allPetData = await Utils . getBatchPetAPIData ( 10 )
40
+ Utils . durstenfeldShuffle ( allPetData )
41
+ setPetData ( allPetData )
42
+ setIsLoading ( false )
43
+ }
44
+ fetchPetApiData ( )
45
45
} , [ ] )
46
46
47
47
const getAnimatedCards = ( ) : JSX . Element [ ] => {
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const PetReleasePage: React.FC = () => {
6
6
return (
7
7
< div >
8
8
< Navbar />
9
+ < form action = "" >
10
+
11
+ </ form >
9
12
< FooterSection />
10
13
</ div >
11
14
)
You can’t perform that action at this time.
0 commit comments