Skip to content

Commit

Permalink
init particles
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Feb 6, 2024
1 parent 4749c4a commit cc59967
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/components/explore/CategoryTokenParticles.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react'
import Particles from 'react-tsparticles'
import { Engine } from 'tsparticles-engine'

const CategoryTokenParticles = ({
tokenSymbols,
Expand All @@ -15,6 +16,9 @@ const CategoryTokenParticles = ({
if (!mounted) return null
return (
<Particles
init={async (engine: Engine) => {
console.log('particles library initialized:', engine)
}}
id={`tsparticles-${id}`}
options={{
fullScreen: false,
Expand Down Expand Up @@ -45,7 +49,7 @@ const CategoryTokenParticles = ({
},
rate: {
quantity: 1,
delay: { min: 6, max: 12 },
delay: { min: 3, max: 9 },
},
startCount: 0,
particles: {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit cc59967

Please sign in to comment.