Skip to content

Commit 22698c9

Browse files
refactor: change Explosion component to export function syntax
1 parent 41b38a7 commit 22698c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/ui/Explosion.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ type ExplosionProps = {
1010
xOffset?: number;
1111
};
1212

13-
const Explosion = ({
13+
export function Explosion({
1414
colour1,
1515
colour2,
1616
count,
1717
yOffset = 0,
1818
xOffset = 0,
19-
}: ExplosionProps) => {
19+
}: ExplosionProps) {
2020
const particles = Array.from({ length: count });
2121

2222
return (
@@ -52,6 +52,6 @@ const Explosion = ({
5252
})}
5353
</div>
5454
);
55-
};
55+
}
5656

5757
export default Explosion;

0 commit comments

Comments
 (0)