Skip to content

Commit

Permalink
implant hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Oct 28, 2023
1 parent eb0d8f7 commit a1212ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Website/src/components/ExploreModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ export const ExploreModule = React.memo<Props>((props) => {
const { settings } = useSettings();
const { theme, scheme, shade } = useTheme();

const { id, name, version, versionCode, description, stars, author, last_update, mmrl, valid } = props.moduleProps;
const { id, name, version, versionCode, description, stars, author, last_update, mmrl, valid, hidden } = props.moduleProps;

const { isVerified, isHidden } = useModuleOptions(id);
const isLowQuality = useLowQualityModule(props.moduleProps, props.disableLowQuality);
const formatLastUpdate = useFormatDate(last_update);

// if (isHidden) {
// return null;
// }
if (hidden) {
return null;
}

if (!settings._invald_module && !valid) {
return null;
Expand Down
1 change: 1 addition & 0 deletions Website/src/typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ declare global {
description?: string | ModuleDescription;
valid: boolean;
verified: boolean;
hidden: boolean;
/** Can overridden by `update.json` with `zipUrl` */
download: string;
last_update: number;
Expand Down

0 comments on commit a1212ca

Please sign in to comment.