Skip to content

Commit 064e830

Browse files
No idea what changed, just pushing
1 parent 69d72e9 commit 064e830

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

src/components/PetInfoCard.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ const PetInfoCard: React.FC<{ petApiData: PetApiData }> = ({ petApiData }) => {
99

1010
const cardClickHandler = () => {
1111
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+
`
1518
navTo(destURL)
1619
}
1720

src/components/sections/PetReleaseSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import React from 'react'
22

33
const PetReleaseSection: React.FC = () => {
44
return (
5-
<div>PetReleaseSection</div>
5+
<section className=''>
6+
</section>
67
)
78
}
89

src/pages/AdoptionGalleryPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ const AdoptionGalleryPage: React.FC = () => {
3535
{ optionName: "Large", isChecked: true }
3636
])
3737

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()
4545
}, [])
4646

4747
const getAnimatedCards = (): JSX.Element[] => {

src/pages/PetReleasePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const PetReleasePage: React.FC = () => {
66
return (
77
<div>
88
<Navbar />
9+
<form action="">
10+
11+
</form>
912
<FooterSection />
1013
</div>
1114
)

0 commit comments

Comments
 (0)