We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b268370 commit d48c0e5Copy full SHA for d48c0e5
1 file changed
src/components/react-color-avatar/index.tsx
@@ -10,11 +10,12 @@ interface IReactColorAvatarProps {
10
option: AvatarOption,
11
size: 280,
12
style: CSSProperties,
13
- colorAvatarRef: any
+ colorAvatarRef: RefObject<HTMLDivElement>
14
}
15
export default function ReactColorAvatar(props: IReactColorAvatarProps) {
16
const { option: avatarOption, size: avatarSize, style, colorAvatarRef } = props;
17
- const [svgContent, setSvgContent] = useState('');
+ const [svgContent, setSvgContent] = useState('');
18
+
19
useEffect(() => {
20
(async () => {
21
const sortedList = Object.entries(avatarOption.widgets).sort(
0 commit comments