Skip to content

Commit 9b0e525

Browse files
committed
feat: update user profile handling with initialUserData prop and remove UserEditProfile component
1 parent 040e995 commit 9b0e525

File tree

5 files changed

+106
-356
lines changed

5 files changed

+106
-356
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
},
5050
"dependencies": {
5151
"ts-node": "^10.9.1"
52-
}
52+
},
53+
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
5354
}

web/src/app/(content)/user/[username]/edit/UserEditProfile.tsx

Lines changed: 0 additions & 326 deletions
This file was deleted.

web/src/app/(content)/user/[username]/edit/page.tsx

Lines changed: 0 additions & 24 deletions
This file was deleted.

web/src/app/(content)/user/[username]/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const UserPage = async ({ params }: { params: { username: string } }) => {
2525

2626
if (userData) {
2727
// set the page title to the user's name
28-
29-
return <UserProfile userData={userData} songData={songData} />;
28+
return <UserProfile initialUserData={userData} songData={songData} />;
3029
} else {
3130
return <ErrorBox message='Failed to get user data' />;
3231
}

0 commit comments

Comments
 (0)