Skip to content

Commit

Permalink
PD-12487 Make CollapsibleList component
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiek-acl committed Jul 15, 2019
1 parent b75fd0a commit fa0fac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/CollapsibleChecklists/src/components/Group/Group.js
Expand Up @@ -14,12 +14,12 @@ const propTypes = {
const defaultProps = {
children: [],
isDisabled: false,
// onChange: () => {},
// onExpand: () => {},
onChange: () => {},
onExpand: () => {},
};

function useIsIndeterminate(checkboxRef) {
const [isIndeterminate, setIsIndeterminate] = React.useState(null);
const [, setIsIndeterminate] = React.useState(null);
React.useEffect(() => {
setIsIndeterminate(checkboxRef.current.indeterminate);
}, [checkboxRef.current.indeterminate]);
Expand Down
Expand Up @@ -7,5 +7,3 @@ import BasicExample from "./examples/Basic";
storiesOf("CollapsibleChecklists", module)
.addDecorator(withKnobs)
.add("Basic", () => <BasicExample />);

//Maybe an example of one nested inside another one?

0 comments on commit fa0fac7

Please sign in to comment.