Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tooltip refactor for buyCrypto entry (#7266)
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- copilot:all --> ### <samp>🤖 Generated by Copilot at f745f90</samp> ### Summary 📝📱💰 <!-- 1. 📝 - This emoji represents the change that moves the FAQ items to a separate file and updates the content and links. It conveys the idea of editing or writing documentation or text. 2. 📱 - This emoji represents the change that adds two new types to the `useTooltip` hook: `DeviceAction` and `Devices`. It conveys the idea of adding support or compatibility for different devices or platforms, such as mobile phones or tablets. 3. 💰 - This emoji represents the change that improves the user experience of the `WalletInfo` component by adding a button and an icon to help users buy more crypto. It conveys the idea of money, finance, or transactions. --> This pull request enhances the `WalletInfo` component to help users buy more crypto, refactors the `useTooltip` hook to use `lodash` and improve performance, and updates the FAQ content for the `BuyCrypto` view. It also adds new types for the `useTooltip` hook. > _We're sailing on the crypto sea, me hearties, yo ho ho_ > _We're buying more BNB when our balance is low_ > _We're fixing up the `useTooltip` hook, with `debounce` and `deviceActions`_ > _We're moving all the FAQ items to a separate file, to avoid distractions_ ### Walkthrough * Add `InfoFilledIcon` component to `WalletInfo` component and adjust layout and logic of `buyCryptoTooltip` component ([link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-667fa9ffb5f38ba848d89c70e2b060c60ce67fee0185391f612eb425169911beR15), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-667fa9ffb5f38ba848d89c70e2b060c60ce67fee0185391f612eb425169911beL71-R86), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-667fa9ffb5f38ba848d89c70e2b060c60ce67fee0185391f612eb425169911beL175-R182), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-667fa9ffb5f38ba848d89c70e2b060c60ce67fee0185391f612eb425169911beL183-R192)) * Remove FAQ item from `BuyCrypto` view and move FAQ items to separate file ([link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-2999e60a5b9510d1e96d02fe7ecd6283d03a0363972374f5d433eb7ecd52b60fL51-L73)) * Add `debounce` function and `DeviceAction` and `Devices` types to `useTooltip` hook and simplify event handling logic ([link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-184e2bdd1dd0d58dab95d4efa5b52f7abd0c62c7833b5dec7f4347f21500d861R24-R33), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL7-R12), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eR26-R36), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL52-L53), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL59-R91), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL96-R104), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL110-R111), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eL125-R142), [link](https://github.com/pancakeswap/pancake-frontend/pull/7266/files?diff=unified&w=0#diff-6fe052fda58ce75c3e945093975d8c35309b36402839fb6166f8cfadde2aa35eR231))
- Loading branch information
09be4f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
uikit – ./packages/uikit
uikit.pancake.run
uikit-git-develop.pancake.run