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
|
const op = root.user.name === item.user.name && Number(item.user.id) !== ANON_USER_ID
|
||||||
? 'OP'
|
? 'OP'
|
||||||
: root.forwards?.some(f => f.user.name === item.user.name) && Number(item.user.id) !== ANON_USER_ID
|
: root.forwards?.some(f => f.user.name === item.user.name) && Number(item.user.id) !== ANON_USER_ID
|
||||||
? 'OPG'
|
? 'fwd'
|
||||||
: null
|
: null
|
||||||
const bountyPaid = root.bountyPaidTo?.includes(Number(item.id))
|
const bountyPaid = root.bountyPaidTo?.includes(Number(item.id))
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ export default function Comment ({
|
||||||
commentsText='replies'
|
commentsText='replies'
|
||||||
commentTextSingular='reply'
|
commentTextSingular='reply'
|
||||||
className={`${itemStyles.other} ${styles.other}`}
|
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={
|
extraInfo={
|
||||||
<>
|
<>
|
||||||
{includeParent && <Parent item={item} rootText={rootText} />}
|
{includeParent && <Parent item={item} rootText={rootText} />}
|
||||||
|
|
Loading…
Reference in New Issue