Refactor code and update dependencies configuration
This commit includes reorganizing dependencies in 'package.json' for better readability. It also refactors code associated with user and personal account data along with animations for AvatarFallback and profile name display. Additionally, the 'next' package version has been updated to '14.2.0-canary.56'. Some changes have been made for minor corrections and enhancements in the scripts.
This commit is contained in:
@@ -83,7 +83,11 @@ export function PersonalAccountDropdown({
|
||||
/>
|
||||
|
||||
<If condition={showProfileName}>
|
||||
<div className={'flex w-full flex-col truncate text-left'}>
|
||||
<div
|
||||
className={
|
||||
'fade-in animate-in flex w-full flex-col truncate text-left'
|
||||
}
|
||||
>
|
||||
<span className={'truncate text-sm'}>{displayName}</span>
|
||||
|
||||
<span className={'text-muted-foreground truncate text-xs'}>
|
||||
|
||||
@@ -20,11 +20,13 @@ export function UpdateAccountDetailsFormContainer() {
|
||||
return null;
|
||||
}
|
||||
|
||||
const userId = user.data.id;
|
||||
|
||||
return (
|
||||
<UpdateAccountDetailsForm
|
||||
displayName={user.data.name ?? ''}
|
||||
userId={user.data.id}
|
||||
onUpdate={revalidateUserDataQuery}
|
||||
userId={userId}
|
||||
onUpdate={() => revalidateUserDataQuery(userId)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -28,11 +28,13 @@ export function UpdateAccountImageContainer() {
|
||||
return <LoadingOverlay fullPage={false} />;
|
||||
}
|
||||
|
||||
const userId = accountData.data.id;
|
||||
|
||||
return (
|
||||
<UploadProfileAvatarForm
|
||||
pictureUrl={accountData.data.picture_url ?? null}
|
||||
userId={accountData.data.id}
|
||||
onAvatarUpdated={revalidateUserDataQuery}
|
||||
userId={userId}
|
||||
onAvatarUpdated={() => revalidateUserDataQuery(userId)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user