Skip to content

Commit

Permalink
BASIRA #2 - Updating NestedAccordion to accept "styled" prop
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed May 21, 2021
1 parent f44a2a6 commit 26a9a91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/semantic-ui/NestedAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ type Props = {
renderItem: (item: any) => string | Component<{}>,
renderRight?: (item: any) => string | Component<{}>,
rootItems: Array<any>,
showToggle: (item: any) => boolean
showToggle: (item: any) => boolean,
styled: boolean
};

type State = {
Expand Down Expand Up @@ -71,7 +72,7 @@ class NestedAccordion extends Component<Props, State> {
className='nested-accordion'
fluid
panels={_.map(this.props.rootItems, this.renderPanel.bind(this))}
styled={props.styled}
styled={this.props.styled}
/>
);
}
Expand Down

0 comments on commit 26a9a91

Please sign in to comment.