From 3c9f638b56ce0b7cc1a9a4f2097bd26658c7c112 Mon Sep 17 00:00:00 2001 From: DerGoogler Date: Sat, 28 May 2022 14:45:27 +0200 Subject: [PATCH] Fixes --- Website/src/activitys/ViewModuleActivity.tsx | 21 ++++++++++++++-- Website/src/components/ExploreModule.tsx | 25 ++++++++++---------- Website/src/native/PackageManager.ts | 14 ++++++++--- 3 files changed, 43 insertions(+), 17 deletions(-) diff --git a/Website/src/activitys/ViewModuleActivity.tsx b/Website/src/activitys/ViewModuleActivity.tsx index cab2928a..9b98668e 100644 --- a/Website/src/activitys/ViewModuleActivity.tsx +++ b/Website/src/activitys/ViewModuleActivity.tsx @@ -16,6 +16,7 @@ import Video from "@Components/dapi/Video"; import DiscordWidget from "@Components/dapi/DiscordWidget"; import LinkManager from "@Native/LinkManager"; import Log from "@Builders/Log"; +import PackageManager from "@Native/PackageManager"; interface Props { extra?: any; @@ -219,8 +220,24 @@ class ViewModuleActivity extends React.Component { if (minMagisk != (null || undefined)) { return ( - Min. Magisk - {minMagisk} + + Min. Magisk + + PackageManager.getMagiskVersionCode + ? "red" + : "" + : "", + }} + > + {minMagisk} + ); } else { diff --git a/Website/src/components/ExploreModule.tsx b/Website/src/components/ExploreModule.tsx index 70224952..f3179f69 100644 --- a/Website/src/components/ExploreModule.tsx +++ b/Website/src/components/ExploreModule.tsx @@ -204,20 +204,21 @@ class ExploreModule extends React.Component { }} > {props.name} + + {(() => { + if (isVerified) { + return ( + <> + {" "} + + + ); + } else { + return null; + } + })()} - {(() => { - if (isVerified) { - return ( - <> - {" "} - - - ); - } else { - return null; - } - })()}