Skip to content

Commit e4ca4bc

Browse files
committed
rename ads
1 parent 42fbf4c commit e4ca4bc

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/components/List/ListComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactNode } from 'react'
22
import { Placeholder } from 'src/components/placeholders'
33
import { MAX_ITEMS_PER_CARD } from 'src/config'
4-
import { CarbonAd } from 'src/features/carbonAds'
4+
import { BannerAd } from 'src/features/ads'
55
import { BaseEntry } from 'src/types'
66

77
type PlaceholdersProps = {
@@ -52,7 +52,7 @@ export function ListComponent<T extends BaseEntry>(props: ListComponentPropsType
5252
return items.slice(0, limit).map((item, index) => {
5353
let content: ReactNode[] = [renderItem(item, index)]
5454
if (withAds && index === 0) {
55-
content.unshift(<CarbonAd key={'carbonAd0'} />)
55+
content.unshift(<BannerAd key={'BannerAd0'} />)
5656
}
5757
return content
5858
})

src/features/carbonAds/components/CarbonAd.css renamed to src/features/ads/components/BannerAd.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
#carbonads * {
1+
#bannerads * {
22
margin: initial;
33
padding: initial;
44
}
5-
#carbonads {
5+
#bannerads {
66
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
77
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
88
sans-serif;
99
}
10-
#carbonads {
10+
#bannerads {
1111
display: flex;
1212
max-width: 330px;
1313
z-index: 100;
1414
margin: 0 auto
1515
}
16-
#carbonads a {
16+
#bannerads a {
1717
color: inherit;
1818
text-decoration: none;
1919
}
20-
#carbonads a:hover {
20+
#bannerads a:hover {
2121
color: inherit;
2222
}
23-
#carbonads span {
23+
#bannerads span {
2424
position: relative;
2525
display: block;
2626
overflow: hidden;
2727
}
28-
#carbonads .carbon-wrap {
28+
#bannerads .carbon-wrap {
2929
display: flex;
3030
}
31-
#carbonads .carbon-img {
31+
#bannerads .carbon-img {
3232
display: block;
3333
margin: 0;
3434
line-height: 1;
3535
}
36-
#carbonads .carbon-img img {
36+
#bannerads .carbon-img img {
3737
display: block;
3838
}
39-
#carbonads .carbon-text {
39+
#bannerads .carbon-text {
4040
font-size: 13px;
4141
padding: 10px;
4242
margin-bottom: 16px;
4343
line-height: 1.5;
4444
text-align: left;
4545
}
46-
#carbonads .carbon-poweredby {
46+
#bannerads .carbon-poweredby {
4747
display: block;
4848
padding: 6px 8px;
4949
background: inherit;

src/features/carbonAds/components/CarbonAd.tsx renamed to src/features/ads/components/BannerAd.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import './CarbonAd.css'
1+
import './BannerAd.css'
22
import { useGetAd } from '../api/getAd'
33

4-
export const CarbonAd = () => {
4+
export const BannerAd = () => {
55
const { data: ad } = useGetAd()
66

77
if (!ad || !ad.link) {
@@ -11,7 +11,7 @@ export const CarbonAd = () => {
1111
return (
1212
<div className="carbon-ad-wrapper blockRow">
1313
{ad && (
14-
<div id="carbonads">
14+
<div id="bannerads">
1515
<span>
1616
<span className="carbon-wrap">
1717
<a

src/features/ads/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./components/BannerAd";

src/features/carbonAds/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)