Add UI module translations to Modrinth App (#5489)
* Add UI module translations to Modrinth App * Replace `await` with `eager: true` --------- Co-authored-by: Calum H. <calum@modrinth.com>
This commit is contained in:
@@ -148,7 +148,7 @@ export const coreNags: Nag[] = [
|
||||
}),
|
||||
status: 'suggestion',
|
||||
shouldShow: (context: NagContext) => {
|
||||
if (!!context.projectV3?.minecraft_server) return false
|
||||
if (context.projectV3?.minecraft_server) return false
|
||||
const featuredGalleryImage = context.project.gallery?.find((img) => img.featured)
|
||||
return context.project?.gallery?.length === 0 || !featuredGalleryImage
|
||||
},
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { defineMessage } from '@modrinth/ui'
|
||||
|
||||
import type { Nag, NagContext } from '../../types/nags'
|
||||
|
||||
export const serverProjectsNags: Nag[] = [
|
||||
|
||||
Reference in New Issue
Block a user