Skip to content

Commit

Permalink
Fixed type error for Member Header and Media Grid in Member Page
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHo0501 committed Dec 23, 2024
1 parent e99eeed commit 111c2f6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/routes/caregiver/MemberPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,11 @@ export default function MemberPage() {
<div className="flex flex-col space-y-4 py-6">
{userData && (
<MemberHeader
backgroundColor="tulip"
username={userData.fullName}
profilePicChildren={
<img
className="w-32 h-32 object-cover rounded-full"
src={userData.profilePicture?.src}
alt="Profile pic"
/>
}
profilePicture={{
type: "img",
src: userData.profilePicture,
}}
/>
)}
</div>
Expand All @@ -199,6 +195,7 @@ export default function MemberPage() {
<MediaGrid
data={data}
sortOrder={sortOrder}
selectable={false}
/>
</div>
</div>
Expand Down

0 comments on commit 111c2f6

Please sign in to comment.