mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix build error
This commit is contained in:
parent
1279814368
commit
38365de971
@ -2,11 +2,12 @@
|
||||
|
||||
import * as confetti from "canvas-confetti";
|
||||
import { useEffect } from "react";
|
||||
import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
|
||||
|
||||
|
||||
export function Confetti() {
|
||||
useEffect(() => {
|
||||
confetti.default()?.catch((e) => console.error(e));
|
||||
runAsynchronously(confetti.default()?.catch((e) => console.error(e)));
|
||||
}, []);
|
||||
|
||||
return (<></>);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user