-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Change pagination bullet color in adpanel to make it visible (#…
…11052) Before: <img width="389" alt="Screenshot 2024-12-14 at 10 19 36" src="https://github.com/user-attachments/assets/9c72473d-c121-4e23-acc5-f396d27e20c1" /> After: <img width="383" alt="Screenshot 2024-12-14 at 10 19 25" src="https://github.com/user-attachments/assets/5b543ef9-5fd7-4c77-8146-fea7b9bf14d7" /> <!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `AdPanel` component in the application by updating styles, optimizing functions, and improving the ad configuration logic. ### Detailed summary - Updated background color in `CarrouselWithSlider.tsx` based on theme. - Converted `handleResume` in `CardLayouts.tsx` to a `useCallback`. - Changed `onAutoplayPause` to directly use `pauseAni`. - Refactored `useAdConfig` in `config.tsx` to use `useMemo` for ad list creation and rendering logic. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
3 changed files
with
53 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters