Skip to content

Commit

Permalink
chore: update banner ad (#11105)
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
This PR introduces a new component `AdTradingCompetitionBfg` for ad
trading, allowing for a different token to be used. It also updates the
ad configuration to include this new component while removing the old
one.

### Detailed summary
- Added `AdTradingCompetitionBfg` component with `token="bfg"`.
- Updated imports in `config.tsx` to include `AdTradingCompetitionBfg`.
- Replaced `AdTradingCompetitionAiTech` with `AdTradingCompetitionBfg`
in the ad configuration.

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

<!-- end pr-codex -->
  • Loading branch information
Chef-Yogi authored Jan 3, 2025
1 parent f774c4d commit 04a64cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/web/src/components/AdPanel/Ads/AdTradingCompetition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ export const AdTradingCompetitionAiTech = (props: AdPlayerProps) => {
export const AdTradingCompetitionApt = (props: AdPlayerProps) => {
return <AdTradingCompetition token="apt" {...props} />
}

export const AdTradingCompetitionBfg = (props: AdPlayerProps) => {
return <AdTradingCompetition token="bfg" {...props} />
}
6 changes: 3 additions & 3 deletions apps/web/src/components/AdPanel/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AdOptionsTrading } from './Ads/AdOptionsTrading'
import { AdPCSX } from './Ads/AdPCSX'
import { AdRocker } from './Ads/AdRocker'
import { AdSpringboard } from './Ads/AdSpringboard'
import { AdTradingCompetitionAiTech, AdTradingCompetitionApt } from './Ads/AdTradingCompetition'
import { AdTradingCompetitionApt, AdTradingCompetitionBfg } from './Ads/AdTradingCompetition'
import { ExpandableAd } from './Expandable/ExpandableAd'
import { shouldRenderOnPages } from './renderConditions'

Expand Down Expand Up @@ -41,8 +41,8 @@ export const useAdConfig = () => {
component: <AdSpringboard />,
},
{
id: 'ad-aitech-tc',
component: <AdTradingCompetitionAiTech />,
id: 'ad-bfg-tc',
component: <AdTradingCompetitionBfg />,
},
{
id: 'ad-apt-tc',
Expand Down

0 comments on commit 04a64cb

Please sign in to comment.