mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 14:21:04 +00:00
feat(profile): add hasCompletedWrapped2025 flag to UserProfile and update ProfileHero rendering logic
This commit is contained in:
@@ -389,7 +389,7 @@ export function ProfileHero() {
|
|||||||
background: !backgroundImage ? heroBackground : undefined,
|
background: !backgroundImage ? heroBackground : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{userProfile && (
|
{userProfile?.hasCompletedWrapped2025 && (
|
||||||
<div className="profile-hero__left-actions">
|
<div className="profile-hero__left-actions">
|
||||||
<Button
|
<Button
|
||||||
theme="outline"
|
theme="outline"
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ export interface UserProfile {
|
|||||||
backupsPerGameLimit: number;
|
backupsPerGameLimit: number;
|
||||||
};
|
};
|
||||||
badges: string[];
|
badges: string[];
|
||||||
|
hasCompletedWrapped2025: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateProfileRequest {
|
export interface UpdateProfileRequest {
|
||||||
|
|||||||
Reference in New Issue
Block a user