Integrate with embed

This commit is contained in:
Chi Vinh Le
2018-08-03 18:19:37 +02:00
parent 09cc76a973
commit b3fa5e1e73
14 changed files with 74 additions and 108 deletions
@@ -65,7 +65,9 @@ export class ClickOutside extends React.Component<ClickOutsideProps> {
}
}
const ClickOutsideWithContext: StatelessComponent<Props> = props => (
const ClickOutsideWithContext: StatelessComponent<
ClickOutsideProps
> = props => (
<UIContext.Consumer>
{({ registerClickFarAway }) => (
<ClickOutside {...props} registerClickFarAway={registerClickFarAway} />
@@ -1 +1 @@
export { default as ClickOutside, ClickFarAwayRegister } from "./ClickOutside";
export { default, ClickFarAwayRegister } from "./ClickOutside";