pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.7k stars 3.56k forks source link

fix: 🐛 Fix search text not emptied on close #10951

Closed chef-ryan closed 1 day ago

chef-ryan commented 1 week ago

PR-Codex overview

This PR focuses on improving the dismissal handling of the AddGaugeModal component by introducing a dismissHandler function. This function resets the search text and calls the onDismiss callback, ensuring a consistent state when the modal is closed.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: fbb55c04b7bdbc4097c0803a2426c32fef171b1f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 5:33am
6 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **aptos-web** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/aptos-web/F7h8yXLecNAV6RXFvZXU8LzA7LSx)) | [Visit Preview](https://aptos-web-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am | | **blog** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/blog/FFBhNo52AzcRZdXHRSnRtEd233Vb)) | [Visit Preview](https://blog-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am | | **bridge** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/bridge/2J2UgicV1zHCH5b4ptc6NgwJxjpS)) | [Visit Preview](https://bridge-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am | | **games** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/games/4NG1wyXFUD29HRipcimKGxwjUgWJ)) | [Visit Preview](https://games-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am | | **gamification** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/gamification/D8M5aNTZ1E3P6yixx9ogdHuYour6)) | [Visit Preview](https://gamification-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am | | **uikit** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/uikit/wU1tgHAMeSfc2pGF67PLenwWdTEi)) | [Visit Preview](https://uikit-git-fix-gaugemodal-search.pancake.run) | | Nov 26, 2024 5:33am |