diff --git a/src/components/ExtensionCard.tsx b/src/components/ExtensionCard.tsx index dd010ce5..2c7160cb 100644 --- a/src/components/ExtensionCard.tsx +++ b/src/components/ExtensionCard.tsx @@ -23,7 +23,7 @@ interface IProps { export default function ExtensionCard(props: IProps) { const { extension: { - name, lang, versionName, installed, hasUpdate, obsolete, pkgName, iconUrl, + name, lang, versionName, installed, hasUpdate, obsolete, pkgName, iconUrl, isNsfw, }, notifyInstall, } = props; @@ -116,6 +116,11 @@ export default function ExtensionCard(props: IProps) { {langPress} {' '} {versionName} + {isNsfw && ( + + {' 18+'} + + )} diff --git a/src/components/SourceCard.tsx b/src/components/SourceCard.tsx index 6237ab14..628b442e 100644 --- a/src/components/SourceCard.tsx +++ b/src/components/SourceCard.tsx @@ -41,7 +41,7 @@ interface IProps { export default function SourceCard(props: IProps) { const { source: { - id, name, lang, iconUrl, supportsLatest, + id, name, lang, iconUrl, supportsLatest, isNsfw, }, } = props; @@ -99,6 +99,11 @@ export default function SourceCard(props: IProps) { {id !== '0' && ( {langCodeToName(lang)} + {isNsfw && ( + + {' 18+'} + + )} )}