feat: remove suspicious account badge
This commit is contained in:
parent
8743bdb6b5
commit
9f6045461c
1 changed files with 1 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ import { cn } from '@/lib/utils'
|
||||||
import { useNostr } from '@/providers/NostrProvider'
|
import { useNostr } from '@/providers/NostrProvider'
|
||||||
import { useUserTrust } from '@/providers/UserTrustProvider'
|
import { useUserTrust } from '@/providers/UserTrustProvider'
|
||||||
import fayan from '@/services/fayan.service'
|
import fayan from '@/services/fayan.service'
|
||||||
import { AlertTriangle, ShieldAlert } from 'lucide-react'
|
import { ShieldAlert } from 'lucide-react'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
|
|
@ -55,7 +55,6 @@ export default function TrustScoreBadge({
|
||||||
if (loading || percentile === null) return null
|
if (loading || percentile === null) return null
|
||||||
|
|
||||||
// percentile < 40: likely spam (red alert)
|
// percentile < 40: likely spam (red alert)
|
||||||
// percentile < 60: suspicious (yellow warning)
|
|
||||||
if (percentile < 40) {
|
if (percentile < 40) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
@ -67,16 +66,5 @@ export default function TrustScoreBadge({
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (percentile < 60) {
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
title={t('Suspicious account (Trust score: {{percentile}}%)', { percentile })}
|
|
||||||
className={classNames?.container}
|
|
||||||
>
|
|
||||||
<AlertTriangle className={cn('!size-4 text-yellow-600 dark:text-yellow-500', className)} />
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue