Skip to content

Commit 2277265

Browse files
🐛 Fix bug
1 parent e3eaa36 commit 2277265

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-confetti-boom",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A customizable React confetti explosion component for celebrations and special events",
55
"author": "almond-bongbong <bal.dongdongdong@gmail.com>",
66
"homepage": "https://github.com/almond-bongbong/react-confetti-boom",

src/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use client';
22

3-
import React, { ReactNode, useCallback, useEffect, useRef } from 'react';
3+
import React, {
4+
ReactElement,
5+
ReactNode,
6+
useCallback,
7+
useEffect,
8+
useRef,
9+
} from 'react';
410
import styles from './index.module.scss';
511
import { randomNumBetween } from './libs/utils';
612
import Particle from './model/Particle';
@@ -30,7 +36,7 @@ type Props =
3036
fadeOutHeight?: number;
3137
};
3238

33-
function Confetti(props: Props): ReactNode {
39+
function Confetti(props: Props): ReactElement {
3440
// common props
3541
const {
3642
mode = 'boom',

0 commit comments

Comments
 (0)