From 29b33cd9697e8e5e4cfc2cc0c83cdafaa2244c81 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Fri, 11 Sep 2026 16:36:08 +0300 Subject: [PATCH] feat: initial new notif ui, and repair version option --- src/components/common/AchievementToast.tsx | 16 ++---- src/components/views/VersionsView.tsx | 63 ++++++++++++++++------ src/i18n/locales/en.json | 3 +- src/i18n/locales/fr.json | 3 +- src/i18n/locales/ru.json | 3 +- 5 files changed, 57 insertions(+), 31 deletions(-) diff --git a/src/components/common/AchievementToast.tsx b/src/components/common/AchievementToast.tsx index b540057..52391d0 100644 --- a/src/components/common/AchievementToast.tsx +++ b/src/components/common/AchievementToast.tsx @@ -114,23 +114,15 @@ export function AchievementToast({ } className={`fixed top-6 right-6 z-[9999] ${onClick ? "cursor-pointer" : ""}`} > -
-
+
+
{getIcon()}
- + {displayTitle} - + {message}
diff --git a/src/components/views/VersionsView.tsx b/src/components/views/VersionsView.tsx index 394f079..e39cefd 100644 --- a/src/components/views/VersionsView.tsx +++ b/src/components/views/VersionsView.tsx @@ -95,8 +95,7 @@ const VersionsView = memo(function VersionsView() { const { isAndroid } = usePlatform(); const visibleEditions = editions.filter( (e) => - e.url !== HIDDEN_INSTANCE_URL || - installedVersions.includes(e.instanceId), + e.url !== HIDDEN_INSTANCE_URL || installedVersions.includes(e.instanceId), ); const [focusIndex, setFocusIndex] = useState(0); const [focusBtn, setFocusBtn] = useState(0); @@ -326,7 +325,9 @@ const VersionsView = memo(function VersionsView() { }; const handleImportWorld = (instanceId: string) => { - const edition = visibleEditions.find((e: Edition) => e.instanceId === instanceId); + const edition = visibleEditions.find( + (e: Edition) => e.instanceId === instanceId, + ); setImportWorldTarget({ id: instanceId, name: edition?.name ?? instanceId }); setIsImportWorldModalOpen(true); }; @@ -583,7 +584,7 @@ const VersionsView = memo(function VersionsView() { className="w-full text-left px-3 py-1.5 text-xs text-[#ffff55] hover:text-white hover:bg-[#ffff55]/20 flex items-center gap-2 group transition-colors mc-text-shadow font-bold border-b border-white/5 mb-1" > )} - {!isAndroid && !isInstalled && ( - ) : null} {argsSchemas[edition.instanceId] && ( + ) : null}{" "} + {argsSchemas[edition.instanceId] && ( )}
+ {!isAndroid && ( - )} {!isAndroid && ( + )}{" "} + {!isAndroid && ( - )} {!isAndroid && ( + )}{" "} + {!isAndroid && ( - )} {!isAndroid && ( + )}{" "} + {!isAndroid && ( - )} {!isAndroid && ( + )}{" "} + {!isAndroid && ( - )} {!isAndroid && ( + )}{" "} + {!isAndroid && ( - )} {isCustom ? ( + {" "} + {isCustom ? ( - ) : null}
+ ) : null}{" "} +
)} @@ -1053,7 +1083,8 @@ const VersionsView = memo(function VersionsView() { }} > {t("common.done")} -
+ {" "} +
)}