fix who can reply icon (#8625)
This commit is contained in:
@@ -160,7 +160,9 @@ function Icon({
|
|||||||
width?: number
|
width?: number
|
||||||
settings: ThreadgateAllowUISetting[]
|
settings: ThreadgateAllowUISetting[]
|
||||||
}) {
|
}) {
|
||||||
const isEverybody = settings.length === 0
|
const isEverybody =
|
||||||
|
settings.length === 0 ||
|
||||||
|
settings.every(setting => setting.type === 'everybody')
|
||||||
const isNobody = !!settings.find(gate => gate.type === 'nobody')
|
const isNobody = !!settings.find(gate => gate.type === 'nobody')
|
||||||
const IconComponent = isEverybody ? Earth : isNobody ? CircleBanSign : Group
|
const IconComponent = isEverybody ? Earth : isNobody ? CircleBanSign : Group
|
||||||
return <IconComponent fill={color} width={width} />
|
return <IconComponent fill={color} width={width} />
|
||||||
|
|||||||
Reference in New Issue
Block a user