diff --git a/README.md b/README.md index 75f22273..2fd57cc3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [](https://circleci.com/gh/1uphealth/fhir-react/tree/master) -[](https://fhir-react-lib-test-storybook.s3.amazonaws.com/branch/release-0-3-8/index.html) +[](https://fhir-react-lib-test-storybook.s3.amazonaws.com/branch/release-0-3-9/index.html) # fhir-react diff --git a/package.json b/package.json index a30ed49a..84df060a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhir-react", - "version": "0.3.8", + "version": "0.3.9", "description": "React component library for displaying FHIR Resources ", "main": "build/index.js", "peerDependencies": { diff --git a/src/components/containers/Accordion/Accordion.js b/src/components/containers/Accordion/Accordion.js index f5ccb4ff..62dfbf61 100644 --- a/src/components/containers/Accordion/Accordion.js +++ b/src/components/containers/Accordion/Accordion.js @@ -6,7 +6,7 @@ const CHEVRON_DOWN_COLOR = '#6f83a9'; const CHEVRON_UP_COLOR = '#2a6fd7'; const Accordion = props => { - const { headerContent, bodyContent, onClick } = props; + const { headerContent, bodyContent, onClick, rawOnClick } = props; const [rotate, setRotate] = useState(false); const handleAccordionClick = () => setRotate(!rotate); const accordionId = uniqueId( @@ -43,8 +43,28 @@ const Accordion = props => { ); + const isRawInAccordion = + isAccordionOpenable() && typeof onClick !== 'function'; + + const rawButton = ( +