mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-14 20:22:10 +00:00
feat: adding change hero
This commit is contained in:
parent
035e424a76
commit
4222fcec52
1 changed files with 2 additions and 10 deletions
|
@ -274,15 +274,7 @@ export function ProfileHero() {
|
|||
if (filePaths && filePaths.length > 0) {
|
||||
const path = filePaths[0];
|
||||
|
||||
const { imagePath } = await window.electron
|
||||
.processProfileImage(path)
|
||||
.catch(() => {
|
||||
showErrorToast(t("image_process_failure"));
|
||||
return { imagePath: null };
|
||||
});
|
||||
|
||||
console.log("imagePath", imagePath);
|
||||
setHero(imagePath);
|
||||
setHero(path);
|
||||
|
||||
// onChange(imagePath);
|
||||
}
|
||||
|
@ -292,7 +284,7 @@ export function ProfileHero() {
|
|||
if (hero) return `local:${hero}`;
|
||||
// if (userDetails?.profileImageUrl) return userDetails.profileImageUrl;
|
||||
|
||||
return null;
|
||||
return "";
|
||||
};
|
||||
|
||||
// const imageUrl = getImageUrl();
|
||||
|
|
Loading…
Reference in a new issue