Skip to content

Commit e437642

Browse files
committed
type: add HTMLDivElement type for colorAvatarRef
1 parent da4c99d commit e437642

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/layouts/container/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export default function Container(props: IProps) {
1515
const { avatarOption, setAvatarOption } = props;
1616
const [flipped, setFlipped] = useState(false);
1717
const [downloading, setDownloading] = useState(false);
18-
// const [imageDataURL, setImageDataURL] = useState('');
19-
const colorAvatarRef = useRef(null);
18+
const colorAvatarRef = useRef<HTMLDivElement>(null);
2019
const onRandomAvatar = () => {
2120
if (Math.random() <= TRIGGER_PROBABILITY) {
2221
let colorfulOption = getSpecialAvatarOption()

0 commit comments

Comments
 (0)