From caf9dcacc70fff46c804ff98ebc70953f4eab51e Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Mon, 14 Sep 2026 14:32:41 +0300 Subject: [PATCH] feat: redesign notifs --- public/images/empty.png | Bin 0 -> 651 bytes src/components/common/AchievementToast.tsx | 30 +++-- src/pages/App.tsx | 129 +++++++++++---------- 3 files changed, 79 insertions(+), 80 deletions(-) create mode 100644 public/images/empty.png diff --git a/public/images/empty.png b/public/images/empty.png new file mode 100644 index 0000000000000000000000000000000000000000..0e31a715565d6281a0c91d3601b1ae43f08d5e34 GIT binary patch literal 651 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U{uI-b`B^Ga(7~2keHgBkWh1g zfklUphi7M{s;lEWKQ6(Efm}Qu3Whs(G%)J_DC=z$bcw<CRTn(0VcE0#Qa?mP_>w z5h}80(nJ_GPFBbf71+IJ$pV%W+kiaoE{7a>g=kGnWkc2zY&-pzYp9%%JTZ?sMSF?z z#>o?IXs$eZ(&3w&LNx2c^M8Kw@QB4rNX$@IIx=aQp+Qc5dcuSq%>u!ZCk`CAf9k-7 zw?l{RO~f*VI5QFhb7Ni*_boU6s9G9NWPF>kdmO`XKdEA;z40TLc-qP z|Np1!vax;h<#-mGk{d4z=yu0t_redGelhW~V^~+(sp8^Gud?jF*Vfzr*ll>M=-;ji z{(T$*!U}2*J`Fd@z7@zEpIUwA-kf5~az;bOB&H)Q9h^|v84QD4V4LBwPY>Vlm(-nR dg}eF|f(>8bz# literal 0 HcmV?d00001 diff --git a/src/components/common/AchievementToast.tsx b/src/components/common/AchievementToast.tsx index 52391d0..a4f0755 100644 --- a/src/components/common/AchievementToast.tsx +++ b/src/components/common/AchievementToast.tsx @@ -50,19 +50,15 @@ export function AchievementToast({ const getIcon = () => { if (variant === "update") { return ( - - - + Update ); } if (variant === "steam") { @@ -112,13 +108,13 @@ export function AchievementToast({ } : undefined } - className={`fixed top-6 right-6 z-[9999] ${onClick ? "cursor-pointer" : ""}`} + className={onClick ? "cursor-pointer" : ""} > -
-
+
+
{getIcon()}
-
+
{displayTitle} diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 5728317..a0d195e 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -419,10 +419,6 @@ export default function App() { editions={game.editions} /> - - - TauriService.openUrl( - updateUrl || - "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/latest", - ) - } - title={t("download.updateAvailable")} - variant="update" - /> - - { - clearGameUpdate(); - setActiveView("versions"); - }} - title={t("download.gameUpdateAvailable")} - variant="update" - /> - - - - {pluginToast && ( +
setPluginToast(null)} - title={pluginToast.options?.title} - variant={pluginToast.options?.variant} + message={game.gameLog ? null : game.error} + onClose={clearError} /> - )} + + + TauriService.openUrl( + updateUrl || + "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/latest", + ) + } + title={t("download.updateAvailable")} + variant="update" + /> + + { + clearGameUpdate(); + setActiveView("versions"); + }} + title={t("download.gameUpdateAvailable")} + variant="update" + /> + + + + {pluginToast && ( + setPluginToast(null)} + title={pluginToast.options?.title} + variant={pluginToast.options?.variant} + /> + )} + + { + clearFriendRequestMessage(); + setActiveView("lceonline"); + }} + title={t("download.friendRequest")} + variant="update" + /> + + { + clearInviteMessage(); + setActiveView("lceonline"); + }} + title={t("download.gameInvite")} + variant="update" + /> +
- - { - clearFriendRequestMessage(); - setActiveView("lceonline"); - }} - title={t("download.friendRequest")} - variant="update" - /> - - { - clearInviteMessage(); - setActiveView("lceonline"); - }} - title={t("download.gameInvite")} - variant="update" - />
);