opg => fwd
This commit is contained in:
parent
cfb8fa7014
commit
b6cb895871
|
@ -133,7 +133,7 @@ export default function Comment ({
|
|||
const op = root.user.name === item.user.name && Number(item.user.id) !== ANON_USER_ID
|
||||
? 'OP'
|
||||
: root.forwards?.some(f => f.user.name === item.user.name) && Number(item.user.id) !== ANON_USER_ID
|
||||
? 'OPG'
|
||||
? 'fwd'
|
||||
: null
|
||||
const bountyPaid = root.bountyPaidTo?.includes(Number(item.id))
|
||||
|
||||
|
@ -155,7 +155,7 @@ export default function Comment ({
|
|||
commentsText='replies'
|
||||
commentTextSingular='reply'
|
||||
className={`${itemStyles.other} ${styles.other}`}
|
||||
embellishUser={op && <><span> </span><Badge bg='boost' className={`${styles.op} bg-opacity-75`}>{op}</Badge></>}
|
||||
embellishUser={op && <><span> </span><Badge bg={op === 'fwd' ? 'secondary' : 'boost'} className={`${styles.op} bg-opacity-75`}>{op}</Badge></>}
|
||||
extraInfo={
|
||||
<>
|
||||
{includeParent && <Parent item={item} rootText={rootText} />}
|
||||
|
|
Loading…
Reference in New Issue