Clicking overlay closes onboarding
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user