this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show roles in account info

+18
+18
src/components/account-info.jsx
··· 121 121 username, 122 122 memorial, 123 123 moved, 124 + roles, 124 125 } = info || {}; 125 126 let headerIsAvatar = false; 126 127 let { header, headerStatic } = info || {}; ··· 133 134 } 134 135 } 135 136 } 137 + 138 + const accountInstance = useMemo(() => { 139 + if (!url) return null; 140 + const domain = new URL(url).hostname; 141 + return domain; 142 + }, [url]); 136 143 137 144 const [headerCornerColors, setHeaderCornerColors] = useState([]); 138 145 ··· 381 388 <Icon icon="group" /> Group 382 389 </span> 383 390 )} 391 + {roles?.map((role) => ( 392 + <span class="tag"> 393 + {role.name} 394 + {!!accountInstance && ( 395 + <> 396 + {' '} 397 + <span class="more-insignificant">{accountInstance}</span> 398 + </> 399 + )} 400 + </span> 401 + ))} 384 402 <div 385 403 class="note" 386 404 onClick={handleContentLinks({