MCPcopy Index your code
hub / github.com/refined-github/refined-github / createAvatar

Function createAvatar

source/features/small-user-avatars.tsx:13–23  ·  view source on GitHub ↗
(username: string, size: number)

Source from the content-addressed store, hash-verified

11import observe from '../helpers/selector-observer.js';
12
13function createAvatar(username: string, size: number): JSX.Element {
14 return (
15 <img
16 className="avatar avatar-user rgh-small-user-avatars"
17 src={getUserAvatarURL(username, size)!}
18 width={size}
19 height={size}
20 loading="lazy"
21 />
22 );
23}
24
25function addRepoAvatar(link: HTMLAnchorElement): void {
26 const [owner] = link.textContent.trim().split('/');

Callers 2

addRepoAvatarFunction · 0.85
addAvatarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected