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 6e60239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 6e60239

Please sign in to comment.