Skip to content

Commit d48c0e5

Browse files
committed
type: fix any type
1 parent b268370 commit d48c0e5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/react-color-avatar/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ interface IReactColorAvatarProps {
1010
option: AvatarOption,
1111
size: 280,
1212
style: CSSProperties,
13-
colorAvatarRef: any
13+
colorAvatarRef: RefObject<HTMLDivElement>
1414
}
1515
export default function ReactColorAvatar(props: IReactColorAvatarProps) {
1616
const { option: avatarOption, size: avatarSize, style, colorAvatarRef } = props;
17-
const [svgContent, setSvgContent] = useState('');
17+
const [svgContent, setSvgContent] = useState('');
18+
1819
useEffect(() => {
1920
(async () => {
2021
const sortedList = Object.entries(avatarOption.widgets).sort(

0 commit comments

Comments
 (0)