Skip to content

Commit 39372a6

Browse files
committed
add carbon ads in accordion
1 parent c2f50a5 commit 39372a6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

docs/components/accordion.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ keywords: [
88
source_url: "/docs/components/accordion"
99
---
1010

11+
import CarbonAds from '@site/src/components/CarbonAds';
12+
1113
## React Native Accordion Component
1214

1315
This accordion component made by Galio is easily customizable. Built with Flatlist, this expandable list can be used to only show relevant information and save space in your screen.
1416

17+
<CarbonAds />
18+
1519
![Accordion](/img/docs/accordion/accordion.gif)
1620

1721
### Usage

sidebars.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1515
const sidebars: SidebarsConfig = {
1616
tutorialSidebar: [
1717
'intro',
18-
{
19-
type: 'custom',
20-
// The path is relative to src/components
21-
component: '@site/src/components/CarbonAds',
22-
},
2318
{
2419
type: 'category',
2520
label: 'Get Started',

src/components/CarbonAds.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function CarbonAds({
4444

4545
return (
4646
<div
47-
id="carbon-ads-container"
47+
id="carbon-ads-container mb-4"
4848
className="max-w-sm mx-auto"
4949
>
5050
<style dangerouslySetInnerHTML={{

0 commit comments

Comments
 (0)