Skip to content

Commit 89cb075

Browse files
committed
comments
1 parent 15f3a3b commit 89cb075

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

app/routes/success.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function RouteComponent() {
9191

9292
if (run.status === "COMPLETED") {
9393
setStatus("success");
94-
navigate({ to: "/videos" });
94+
setTimeout(() => {
95+
navigate({ to: "/videos" });
96+
}, 3000);
9597
return;
9698
}
9799

@@ -112,16 +114,18 @@ function RouteComponent() {
112114
return (
113115
<HeroHighlight>
114116
<div className="absolute inset-0">
115-
<Confetti
116-
particleCount={75}
117-
shapeSize={15}
118-
deg={250}
119-
effectCount={1}
120-
spreadDeg={100}
121-
x={0.5}
122-
y={0.5}
123-
launchSpeed={1}
124-
/>
117+
{status === "success" && (
118+
<Confetti
119+
particleCount={75}
120+
shapeSize={15}
121+
deg={250}
122+
effectCount={1}
123+
spreadDeg={100}
124+
x={0.5}
125+
y={0.5}
126+
launchSpeed={1}
127+
/>
128+
)}
125129
</div>
126130
<TopNav showTierPill={false} />
127131
<div className="w-full min-h-[calc(100dvh-8rem)] flex items-center justify-center">

0 commit comments

Comments
 (0)