18+ tag on source/extension cards (#160)

* 18+ to source card

* 18+ extensions card
This commit is contained in:
robo
2022-03-13 08:06:18 +00:00
committed by GitHub
parent 042172a072
commit eeaee05ae7
2 changed files with 12 additions and 2 deletions

View File

@@ -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 && (
<Typography variant="caption" display="inline" gutterBottom color="red">
{' 18+'}
</Typography>
)}
</Typography>
</Box>
</Box>