Skip to content

Commit

Permalink
Merge pull request #136 from kernel-community/ag/add-url-param-to-ope…
Browse files Browse the repository at this point in the history
…n-mint

add url search param to open mint
  • Loading branch information
andytudhope authored Jul 3, 2024
2 parents 76e46bf + 761cae2 commit 2ab5c8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/dapp/src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { useSearchParams } from 'react-router-dom'
import { SliderContext } from '../contexts/Slider'
import { useContext } from 'react'
import { useContext, useEffect } from 'react'

const Footer = () => {
const slider = useContext(SliderContext)
const [params] = useSearchParams();
const toOpenMint = params.get('mint');
useEffect(() => {
if (toOpenMint) {
slider.dispatch({ type: 'open' })
}
}, [])
return (
<>
<div className='
Expand Down

0 comments on commit 2ab5c8f

Please sign in to comment.