@@ -11,11 +11,12 @@ import Junimo2 from '../../Media/Junimo2B.png'
1111import Junimo3 from '../../Media/Junimo3B.png'
1212import Junimo4 from '../../Media/Junimo4B.png'
1313import Rope from '../../Media/Rope.png'
14+ import type { fullPlayerDataType } from 'types/displayDataTypes' ;
1415
1516type statsPageProps = {
16- playerData : any ;
17+ playerData : fullPlayerDataType ;
1718 globalFarmName : string ;
18- farmhands : any [ ] ;
19+ farmhands : fullPlayerDataType [ ] ;
1920}
2021
2122const Stats = ( { playerData, globalFarmName, farmhands} : statsPageProps ) => {
@@ -32,7 +33,7 @@ const Stats = ({playerData, globalFarmName, farmhands}: statsPageProps) => {
3233 const playerStats = farmhands . map ( ( item , i ) => (
3334 < TabPanel key = { i } >
3435 < section className = "wrapper" >
35- < Skills xp = { item . experience } > </ Skills >
36+ < Skills { ... item . experience } > </ Skills >
3637 < div className = "ropes" >
3738 < img src = { Rope } alt = "" > </ img >
3839 < img src = { Rope } alt = "" > </ img >
@@ -61,30 +62,30 @@ const Stats = ({playerData, globalFarmName, farmhands}: statsPageProps) => {
6162 < section className = "scroller" >
6263 < Tabs >
6364 < TabList >
64- < Tab > < img src = { junimos [ 0 ] } alt = "Junimo" width = "25px" > </ img > { playerData . playerName } </ Tab >
65+ < Tab > < img src = { junimos [ 0 ] } alt = "Junimo" width = "25px" > </ img > { playerData [ 0 ] . playerName } </ Tab >
6566 { titles }
6667 </ TabList >
6768
6869 < TabPanel >
6970 < section className = "wrapper" >
70- < Skills xp = { playerData . experience } > </ Skills >
71+ < Skills { ... playerData [ 0 ] . experience } > </ Skills >
7172 < div className = "ropes" >
7273 < img src = { Rope } alt = "" > </ img >
7374 < img src = { Rope } alt = "" > </ img >
7475 </ div >
7576 < Achievements
76- recipesCooked = { playerData . cookedItems }
77- itemsCrafted = { playerData . itemsCrafted }
78- cropsShipped = { playerData . cropsShipped }
79- fishCaught = { playerData . fishCaught }
80- friendship = { playerData . friendship }
81- monstersKilled = { playerData . monstersKilled }
82- shippedItems = { playerData . shippedItems }
83- moneyEarned = { playerData . moneyEarned }
84- museumCollection = { playerData . museumCollection }
85- questsDone = { playerData . questsDone }
86- specialReq = { playerData . specialRequests }
87- pendingSpecialReq = { playerData . pendingSpecialRequests }
77+ recipesCooked = { playerData [ 0 ] . cookedItems }
78+ itemsCrafted = { playerData [ 0 ] . itemsCrafted }
79+ cropsShipped = { playerData [ 0 ] . cropsShipped }
80+ fishCaught = { playerData [ 0 ] . fishCaught }
81+ friendship = { playerData [ 0 ] . friendship }
82+ monstersKilled = { playerData [ 0 ] . monstersKilled }
83+ shippedItems = { playerData [ 0 ] . shippedItems }
84+ moneyEarned = { playerData [ 0 ] . moneyEarned }
85+ museumCollection = { playerData [ 0 ] . museumCollection }
86+ questsDone = { playerData [ 0 ] . questsDone }
87+ specialReq = { playerData [ 0 ] . specialRequests }
88+ pendingSpecialReq = { playerData [ 0 ] . pendingSpecialRequests }
8889 > </ Achievements >
8990 </ section >
9091 </ TabPanel >
0 commit comments