Skip to content

Commit d18f1b7

Browse files
committed
remove carbon class names
1 parent a588ce2 commit d18f1b7

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

src/components/List/ListComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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(<BannerAd key={'BannerAd0'} />)
55+
content.unshift(<BannerAd key={'banner-ad'} />)
5656
}
5757
return content
5858
})

src/features/ads/components/BannerAd.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@ import './BannerAd.css'
22
import { useGetAd } from '../api/getAd'
33

44
export const BannerAd = () => {
5-
const { data: ad, isError } = useGetAd()
5+
const { data: ad, isError } = useGetAd({
6+
config: {
7+
cacheTime: 0,
8+
staleTime: 0,
9+
}
10+
})
611

712
if (isError || !ad) {
813
return null
914
}
1015

1116
return (
12-
<div className="carbon-ad-wrapper blockRow">
17+
<div className="ad-wrapper blockRow">
1318
{ad && (
1419
<div id="bannerads">
1520
<span>
16-
<span className="carbon-wrap">
21+
<span className="wrap">
1722
<a
1823
href={ad.link}
19-
className="carbon-img"
24+
className="img"
2025
target="_blank"
2126
rel="noopener sponsored noreferrer"
2227
title={ad.title}>
@@ -31,7 +36,7 @@ export const BannerAd = () => {
3136

3237
<a
3338
href={ad.link}
34-
className="carbon-text"
39+
className="text"
3540
target="_blank"
3641
rel="noopener sponsored noreferrer">
3742
{ad.description}
@@ -40,7 +45,7 @@ export const BannerAd = () => {
4045

4146
<a
4247
href={ad.provider.link}
43-
className="carbon-poweredby"
48+
className="poweredby"
4449
target="_blank"
4550
rel="noopener sponsored noreferrer">
4651
{ad.provider.title}

0 commit comments

Comments
 (0)