Clicking overlay closes onboarding

This commit is contained in:
fragosti
2018-06-27 15:14:21 -07:00
parent 36836eb942
commit 47a267c3fa
4 changed files with 12 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ import * as React from 'react';
import { zIndex } from 'ts/style/z_index';
export interface OverlayProps {
children?: React.ReactNode;
style?: React.CSSProperties;
onClick?: () => void;
}
@@ -19,7 +18,7 @@ const style: React.CSSProperties = {
backgroundColor: 'rgba(0, 0, 0, 0.6)',
};
export const Overlay: React.StatelessComponent = (props: OverlayProps) => (
export const Overlay: React.StatelessComponent<OverlayProps> = props => (
<div style={{ ...style, ...props.style }} onClick={props.onClick}>
{props.children}
</div>