File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments