Skip to content

Commit

Permalink
chore: remove topper campaign and banner (#10690)
Browse files Browse the repository at this point in the history
<!--
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
The focus of this PR is to update the `ProviderCampaign` component in
`ProviderCampaign.tsx` and remove `TopperCampaignBanner` import in
`useMultipleBannerConfig.tsx`.

### Detailed summary
- Updated `ONRAMP_PROVIDERS.Topper` value in `ProviderCampaign.tsx`
- Removed `TopperCampaignBanner` import and usage in
`useMultipleBannerConfig.tsx`

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

<!-- end pr-codex -->
  • Loading branch information
ChefBingbong authored Sep 18, 2024
1 parent 7554b06 commit 8e267e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const activeCampaigns: { [provider in keyof typeof ONRAMP_PROVIDERS]: boo
[ONRAMP_PROVIDERS.Mercuryo]: false,
[ONRAMP_PROVIDERS.MoonPay]: false,
[ONRAMP_PROVIDERS.Transak]: false,
[ONRAMP_PROVIDERS.Topper]: true,
[ONRAMP_PROVIDERS.Topper]: false,
}

const ProviderCampaign = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import shuffle from 'lodash/shuffle'
import { useMemo, type ReactElement } from 'react'
import { type ReactElement, useMemo } from 'react'
import { BirthdayBanner } from '../BirthdayBanner'
import CompetitionBanner from '../CompetitionBanner'
import { FourMemeBanner } from '../FourMemeBanner'
Expand All @@ -9,7 +9,6 @@ import { PaymasterBanner } from '../PaymasterBanner'
import { PerpetualSeasonalBanner } from '../PerpetualSeasonalBanner'
import { QuestBanner } from '../QuestBanner'
import { TgPredictionBotBanner } from '../TgPredictionBotBanner'
import { TopperCampaignBanner } from '../TopperCampaignBanner'
import UserBanner from '../UserBanner'
import { V4InfoBanner } from '../V4InfoBanner'
import { VeCakeBanner } from '../VeCakeBanner'
Expand Down Expand Up @@ -52,10 +51,6 @@ export const useMultipleBannerConfig = () => {
shouldRender: isRenderTgPredictionBotBanner,
banner: <TgPredictionBotBanner />,
},
{
shouldRender: true,
banner: <TopperCampaignBanner />,
},
{
shouldRender: true,
banner: <V4HackathonBanner />,
Expand Down

0 comments on commit 8e267e7

Please sign in to comment.