Skip to content

Commit 0e35d57

Browse files
committed
feat: add labels to DummyAd components in Display and InArticle for better identification
1 parent fde77db commit 0e35d57

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"pub": "npm run test && npm run build && npm publish",
1919
"lint": "biome check",
2020
"fmt": "biome format",
21+
"fmt:fix": "biome format --write",
2122
"pub@beta": "npm run test && npm run build && npm publish --tag beta",
2223
"semantic-release": "semantic-release"
2324
},

src/AdLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Display = ({
2828
...props
2929
}: DisplayProps) => {
3030
if (dummySize && isDevelopment()) {
31-
return <DummyAd size={dummySize} {...props} />;
31+
return <DummyAd label="Display Ad" size={dummySize} {...props} />;
3232
}
3333

3434
return (
@@ -53,7 +53,7 @@ export const InArticle = ({
5353
...props
5454
}: InArticleProps) => {
5555
if (dummySize && isDevelopment()) {
56-
return <DummyAd size={dummySize} {...props} />;
56+
return <DummyAd label="In-Article Ad" size={dummySize} {...props} />;
5757
}
5858

5959
return (

0 commit comments

Comments
 (0)