-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(accordionItem): fixed naming for accordionItem component
- Loading branch information
Showing
5 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/gatsby-theme-carbon/src/components/Accordion/AccordionItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import cx from 'classnames'; | ||
import { AccordionItem as CarbonAccordionItem } from 'carbon-components-react'; | ||
|
||
const AccordionItem = ({ className, children, ...rest }) => ( | ||
<CarbonAccordionItem {...rest} className={cx(className)}> | ||
{children} | ||
</CarbonAccordionItem> | ||
); | ||
|
||
export default AccordionItem; |
12 changes: 0 additions & 12 deletions
12
packages/gatsby-theme-carbon/src/components/Accordion/AccordionItems.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { default as Accordion } from './Accordion'; | ||
export { default as AccordionItems } from './AccordionItems'; | ||
export { default as AccordionItem } from './AccordionItem'; |